mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
add support for the new using keyword in TypeScript
This commit is contained in:
@@ -2683,10 +2683,13 @@ public class TypeScriptASTConverter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the declaration kind of the given node, which is one of {@code "var"}, {@code "let"} or
|
||||
* {@code "const"}.
|
||||
* Gets the declaration kind of the given node, which is one of {@code "var"}, {@code "let"},
|
||||
* {@code "const"}, or {@code "using"}.
|
||||
*/
|
||||
private String getDeclarationKind(JsonObject declarationList) {
|
||||
if (hasFlag(declarationList, "Using")) {
|
||||
return "using";
|
||||
}
|
||||
return declarationList.get("$declarationKind").getAsString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user