Class LiteralToken
java.lang.Object
com.google.javascript.jscomp.parsing.parser.Token
com.google.javascript.jscomp.parsing.parser.LiteralToken
- Direct Known Subclasses:
StringLiteralToken
,TemplateLiteralToken
A token representing a javascript literal. Includes string, regexp, and number literals.
Boolean and null literals are represented as regular keyword tokens.
The value just includes the raw lexeme. For string literals it includes the beginning and ending
delimiters.
TODO: Regexp literals should have their own token type.
TODO: A way to get the processed value, rather than the raw value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.javascript.jscomp.parsing.parser.Token
asIdentifier, asLiteral, asTemplateLiteral, getStart