add support for the new using keyword in TypeScript

This commit is contained in:
erik-krogh
2023-08-10 21:48:21 +02:00
parent a7d92b3473
commit dc454d3a72
4 changed files with 24 additions and 2 deletions

View File

@@ -2683,10 +2683,13 @@ public class TypeScriptASTConverter {
}
/**
* Gets the declaration kind of the given node, which is one of {@code "var"}, {@code "let"} or
* {@code "const"}.
* Gets the declaration kind of the given node, which is one of {@code "var"}, {@code "let"},
* {@code "const"}, or {@code "using"}.
*/
private String getDeclarationKind(JsonObject declarationList) {
if (hasFlag(declarationList, "Using")) {
return "using";
}
return declarationList.get("$declarationKind").getAsString();
}
}