-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the class hierarchy from TypeScript in the callgraph
- Loading branch information
1 parent
661c5cf
commit 5e0ce62
Showing
6 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
declare function source(): any; | ||
declare function sink(taint: any): any; | ||
|
||
|
||
interface Thing { | ||
do(s: string): void; | ||
} | ||
|
||
class ThingImpl implements Thing { | ||
do(s: string): void { | ||
sink(s); | ||
} | ||
} | ||
|
||
class ThingDoer { | ||
thing: Thing; | ||
doThing(s: string): void { | ||
this.thing.do(s); | ||
} | ||
} | ||
|
||
export function run(doer: ThingDoer): void { | ||
doer.doThing(source()); | ||
} | ||
|
1 change: 1 addition & 0 deletions
1
javascript/ql/test/library-tests/TypeScript/CallGraph/CallGraph.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters