JS: Remove unneeded forwarding method

This commit is contained in:
Asger Feldthaus
2020-03-12 15:48:47 +00:00
parent 788c0f9037
commit 2bdf26a8f1

View File

@@ -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;