Class UpdateExpressionTree
java.lang.Object
com.google.javascript.jscomp.parsing.parser.trees.ParseTree
com.google.javascript.jscomp.parsing.parser.trees.UpdateExpressionTree
Represents UpdateExpression productions from the spec.
UpdateExpression :=
{ ++ | -- } UnaryExpression
LeftHandSideExpression [no LineTerminator here] { ++ | -- }
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Position of the operator relative to the operand. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpdateExpressionTree
(SourceRange location, Token operator, UpdateExpressionTree.OperatorPosition operatorPosition, ParseTree operand) -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateExpressionTree
postfix
(SourceRange location, Token operator, ParseTree operand) static UpdateExpressionTree
prefix
(SourceRange location, Token operator, ParseTree operand) Methods inherited from class com.google.javascript.jscomp.parsing.parser.trees.ParseTree
asArrayLiteralExpression, asArrayPattern, asAwaitExpression, asBinaryOperator, asBlock, asBreakStatement, asCallExpression, asCaseClause, asCatch, asClassDeclaration, asCommaExpression, asComprehension, asComprehensionFor, asComprehensionIf, asComputedPropertyDefinition, asComputedPropertyField, asComputedPropertyGetter, asComputedPropertyMethod, asComputedPropertySetter, asConditionalExpression, asContinueStatement, asDebuggerStatement, asDefaultClause, asDefaultParameter, asDoWhileStatement, asDynamicImportExpression, asEmptyStatement, asExportDeclaration, asExportSpecifier, asExpressionStatement, asFieldDeclaration, asFinally, asForAwaitOfStatement, asForInStatement, asFormalParameterList, asForOfStatement, asForStatement, asFunctionDeclaration, asGetAccessor, asIdentifierExpression, asIfStatement, asImportDeclaration, asImportMetaExpression, asImportSpecifier, asIterRest, asIterSpread, asLabelledStatement, asLiteralExpression, asMemberExpression, asMemberLookupExpression, asMissingPrimaryExpression, asNewExpression, asNewTargetExpression, asNull, asObjectLiteralExpression, asObjectPattern, asObjectRest, asObjectSpread, asOptChainCallExpression, asOptionalMemberExpression, asOptionalMemberLookupExpression, asParenExpression, asProgram, asPropertyNameAssignment, asReturnStatement, asSetAccessor, asSuperExpression, asSwitchStatement, asTemplateLiteralExpression, asTemplateLiteralPortion, asTemplateSubstitution, asThisExpression, asThrowStatement, asTryStatement, asUnaryExpression, asUpdateExpression, asVariableDeclaration, asVariableDeclarationList, asVariableStatement, asWhileStatement, asWithStatement, asYieldStatement, getEnd, getStart, isPattern, isRestParameter, isValidAssignmentTarget, isValidNonVanillaAssignmentTarget, toString
-
Field Details
-
operator
-
operatorPosition
-
operand
-
-
Constructor Details
-
UpdateExpressionTree
public UpdateExpressionTree(SourceRange location, Token operator, UpdateExpressionTree.OperatorPosition operatorPosition, ParseTree operand)
-
-
Method Details
-
prefix
-
postfix
-