Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Commit

Permalink
better printAst test
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh authored May 26, 2021
1 parent a015b94 commit f916aa9
Show file tree
Hide file tree
Showing 3 changed files with 504 additions and 247 deletions.
11 changes: 11 additions & 0 deletions ql/test/printAst/Foo.qll
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import javascript

class Foo extends @bar {
Foo() { 1 = 2 }

string toString() { result = "Foo" }
}

query predicate foo(Foo f) {
f = rank[2](Foo inner | inner.toString() = "foo" | inner order by inner.toString())
}
Loading

0 comments on commit f916aa9

Please sign in to comment.