The
com.google.javascript.rhino.Token enumeration includes several values that are specific to TypeScript. These are even preceded by a "
// TypeScript" comment:
- INTERFACE
- INTERFACE_EXTENDS
- INTERFACE_MEMBERS
- ENUM
- ENUM_MEMBERS
- IMPLEMENTS
- TYPE_ALIAS
- DECLARE
- MEMBER_VARIABLE_DEF
- INDEX_SIGNATURE
- CALL_SIGNATURE
- NAMESPACE
- NAMESPACE_ELEMENTS
My understanding is that Closure cannot parse TypeScript, and I find no code elsewhere in Closure that creates tokens with these values. So what is the purpose of these TypeScript-specific Token values? How are they used? Are they historical artifacts, or placeholders for future development? Are they still actively used (created) by some TypeScript parser that I am not seeing in the regular Closure source tree?
Thank you for any clarification,
Ben