File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ public class TypeScriptASTConverter {
177
177
178
178
TypeScriptASTConverter (TypeScriptParserMetadata metadata ) {
179
179
this .metadata = metadata ;
180
- this .syntaxKindExtends = getSyntaxKind ("ExtendsKeyword" );
180
+ this .syntaxKindExtends = metadata . getSyntaxKindId ("ExtendsKeyword" );
181
181
}
182
182
183
183
/**
@@ -2527,11 +2527,6 @@ private boolean hasFlag(JsonObject node, String flagName) {
2527
2527
return false ;
2528
2528
}
2529
2529
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
-
2535
2530
/** Check whether a node has a child with a given name. */
2536
2531
private boolean hasChild (JsonObject node , String prop ) {
2537
2532
if (!node .has (prop )) return false ;
You can’t perform that action at this time.
0 commit comments