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(String value) |
static TokenType |
TokenType.valueOf(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. |
Constructor and Description |
---|
LiteralToken(TokenType type,
String value,
SourceRange location) |
Token(TokenType type,
SourceRange location) |
Modifier and Type | Field and Description |
---|---|
TokenType |
ComputedPropertySetterTree.access |
TokenType |
ComputedPropertyMemberVariableTree.access |
TokenType |
FunctionDeclarationTree.access |
TokenType |
ComputedPropertyGetterTree.access |
TokenType |
MemberVariableTree.access |
TokenType |
ComputedPropertyMethodTree.access |
TokenType |
VariableDeclarationListTree.declarationType |
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,
IdentifierToken parameter,
ParseTree type,
BlockTree body) |
FunctionDeclarationTree(SourceRange location,
IdentifierToken name,
GenericTypeListTree generics,
boolean isStatic,
boolean isGenerator,
boolean isOptional,
TokenType access,
FunctionDeclarationTree.Kind kind,
FormalParameterListTree formalParameterList,
ParseTree returnType,
ParseTree functionBody) |
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–2023 Google. All rights reserved.