mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Remove unneeded forwarding method
This commit is contained in:
@@ -177,7 +177,7 @@ public class TypeScriptASTConverter {
|
||||
|
||||
TypeScriptASTConverter(TypeScriptParserMetadata metadata) {
|
||||
this.metadata = metadata;
|
||||
this.syntaxKindExtends = getSyntaxKind("ExtendsKeyword");
|
||||
this.syntaxKindExtends = metadata.getSyntaxKindId("ExtendsKeyword");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2527,11 +2527,6 @@ public class TypeScriptASTConverter {
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Gets the numeric value of the syntax kind enum with the given name. */
|
||||
private int getSyntaxKind(String syntaxKind) {
|
||||
return metadata.getSyntaxKindId(syntaxKind);
|
||||
}
|
||||
|
||||
/** Check whether a node has a child with a given name. */
|
||||
private boolean hasChild(JsonObject node, String prop) {
|
||||
if (!node.has(prop)) return false;
|
||||
|
||||
Reference in New Issue
Block a user