| Package | Description |
|---|---|
| com.google.javascript.jscomp.parsing.parser | |
| com.google.javascript.jscomp.parsing.parser.trees |
| Modifier and Type | Field and Description |
|---|---|
TokenType |
Token.type |
TokenType |
Keywords.type |
| Modifier and Type | Method and Description |
|---|---|
static TokenType |
Keywords.getTokenType(java.lang.String value) |
static TokenType |
TokenType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
TokenType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static Keywords |
Keywords.get(TokenType token) |
static boolean |
Keywords.isKeyword(TokenType token) |
static boolean |
Keywords.isStrictKeyword(TokenType token)
Returns true if
token is a "future reserved word" which can
be used as a variable identifier, but only in non-strict mode. |
static boolean |
Keywords.isTypeScriptSpecificKeyword(TokenType type) |
| Constructor and Description |
|---|
LiteralToken(TokenType type,
java.lang.String value,
SourceRange location) |
TemplateLiteralToken(TokenType type,
java.lang.String value,
java.lang.String errorMsg,
SourcePosition position,
SourceRange location) |
Token(TokenType type,
SourceRange location) |
| Modifier and Type | Field and Description |
|---|---|
TokenType |
ComputedPropertyGetterTree.access |
TokenType |
ComputedPropertyMemberVariableTree.access |
TokenType |
FunctionDeclarationTree.access |
TokenType |
MemberVariableTree.access |
TokenType |
ComputedPropertySetterTree.access |
TokenType |
ComputedPropertyMethodTree.access |
TokenType |
VariableDeclarationListTree.declarationType |
| Modifier and Type | Method and Description |
|---|---|
FunctionDeclarationTree.Builder |
FunctionDeclarationTree.Builder.setAccess(TokenType access)
Optional TypeScript accessibility modifier (PUBLIC, PROTECTED, PRIVATE).
|
| Constructor and Description |
|---|
ComputedPropertyGetterTree(SourceRange location,
ParseTree property,
boolean isStatic,
TokenType access,
ParseTree returnType,
BlockTree body) |
ComputedPropertyMemberVariableTree(SourceRange location,
ParseTree property,
boolean isStatic,
TokenType access,
ParseTree declaredType) |
ComputedPropertyMethodTree(SourceRange location,
TokenType access,
ParseTree property,
ParseTree method) |
ComputedPropertySetterTree(SourceRange location,
ParseTree property,
boolean isStatic,
TokenType access,
FormalParameterListTree parameter,
BlockTree body) |
MemberVariableTree(SourceRange location,
IdentifierToken name,
boolean isStatic,
boolean isOptional,
TokenType access,
ParseTree declaredType) |
VariableDeclarationListTree(SourceRange location,
TokenType declarationType,
com.google.common.collect.ImmutableList<VariableDeclarationTree> declarations) |
Copyright © 2009-2020 Google. All Rights Reserved.