File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments