Skip to content

Commit 2bdf26a

Browse files
committed
JS: Remove unneeded forwarding method
1 parent 788c0f9 commit 2bdf26a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

javascript/extractor/src/com/semmle/js/parser/TypeScriptASTConverter.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public class TypeScriptASTConverter {
177177

178178
TypeScriptASTConverter(TypeScriptParserMetadata metadata) {
179179
this.metadata = metadata;
180-
this.syntaxKindExtends = getSyntaxKind("ExtendsKeyword");
180+
this.syntaxKindExtends = metadata.getSyntaxKindId("ExtendsKeyword");
181181
}
182182

183183
/**
@@ -2527,11 +2527,6 @@ private boolean hasFlag(JsonObject node, String flagName) {
25272527
return false;
25282528
}
25292529

2530-
/** Gets the numeric value of the syntax kind enum with the given name. */
2531-
private int getSyntaxKind(String syntaxKind) {
2532-
return metadata.getSyntaxKindId(syntaxKind);
2533-
}
2534-
25352530
/** Check whether a node has a child with a given name. */
25362531
private boolean hasChild(JsonObject node, String prop) {
25372532
if (!node.has(prop)) return false;

0 commit comments

Comments
 (0)