AST: printAST: show all primary classes and method names

This commit is contained in:
Arthur Baars
2021-02-25 15:20:27 +01:00
parent e2b2a450ac
commit 39181ec871
2 changed files with 420 additions and 419 deletions

View File

@@ -26,7 +26,7 @@ class PrintAstConfiguration extends string {
class PrintAstNode extends AstNode {
string getProperty(string key) {
key = "semmle.label" and
result = "[" + this.getAPrimaryQlClass() + "] " + this.toString()
result = "[" + concat(this.getAPrimaryQlClass(), ", ") + "] " + this.toString()
}
/**
@@ -63,7 +63,8 @@ query predicate edges(PrintAstNode source, PrintAstNode target, string key, stri
source.shouldPrint() and
target.shouldPrint() and
key = "semmle.label" and
source.getChild(value) = target
target = source.getAChild() and
value = concat(string name | source.getChild(name) = target | name, "/")
}
/**

File diff suppressed because it is too large Load Diff