public class UpdateExpressionTree extends ParseTree
UpdateExpression :=
{ ++ | -- } UnaryExpression
LeftHandSideExpression [no LineTerminator here] { ++ | -- }
Modifier and Type | Class and Description |
---|---|
static class |
UpdateExpressionTree.OperatorPosition
Position of the operator relative to the operand.
|
Modifier and Type | Field and Description |
---|---|
ParseTree |
operand |
Token |
operator |
UpdateExpressionTree.OperatorPosition |
operatorPosition |
Constructor and Description |
---|
UpdateExpressionTree(SourceRange location,
Token operator,
UpdateExpressionTree.OperatorPosition operatorPosition,
ParseTree operand) |
Modifier and Type | Method and Description |
---|---|
static UpdateExpressionTree |
postfix(SourceRange location,
Token operator,
ParseTree operand) |
static UpdateExpressionTree |
prefix(SourceRange location,
Token operator,
ParseTree operand) |
asAmbientDeclaration, asArrayLiteralExpression, asArrayPattern, asArrayType, asAwaitExpression, asBinaryOperator, asBlock, asBreakStatement, asCallExpression, asCallSignature, asCaseClause, asCatch, asClassDeclaration, asCommaExpression, asComprehension, asComprehensionFor, asComprehensionIf, asComputedPropertyDefinition, asComputedPropertyGetter, asComputedPropertyMemberVariable, asComputedPropertyMethod, asComputedPropertySetter, asConditionalExpression, asContinueStatement, asDebuggerStatement, asDefaultClause, asDefaultParameter, asDoWhileStatement, asDynamicImportExpression, asEmptyStatement, asEnumDeclaration, asExportDeclaration, asExportSpecifier, asExpressionStatement, asFinally, asForAwaitOfStatement, asForInStatement, asFormalParameterList, asForOfStatement, asForStatement, asFunctionDeclaration, asFunctionType, asGenericTypeList, asGetAccessor, asIdentifierExpression, asIfStatement, asImportDeclaration, asImportMetaExpression, asImportSpecifier, asIndexSignature, asInterfaceDeclaration, asIterRest, asIterSpread, asLabelledStatement, asLiteralExpression, asMemberExpression, asMemberLookupExpression, asMemberVariable, asMissingPrimaryExpression, asNamespaceDeclaration, asNewExpression, asNewTargetExpression, asNull, asObjectLiteralExpression, asObjectPattern, asObjectRest, asObjectSpread, asOptionalParameter, asParameterizedType, asParenExpression, asProgram, asPropertyNameAssignment, asRecordType, asReturnStatement, asSetAccessor, asSuperExpression, asSwitchStatement, asTemplateLiteralExpression, asTemplateLiteralPortion, asTemplateSubstitution, asThisExpression, asThrowStatement, asTryStatement, asTypeAlias, asTypedParameter, asTypeName, asTypeQuery, asUnaryExpression, asUnionType, asUpdateExpression, asVariableDeclaration, asVariableDeclarationList, asVariableStatement, asWhileStatement, asWithStatement, asYieldStatement, getEnd, getStart, isPattern, isRestParameter, isValidAssignmentTarget, toString
public final Token operator
public final UpdateExpressionTree.OperatorPosition operatorPosition
public final ParseTree operand
public UpdateExpressionTree(SourceRange location, Token operator, UpdateExpressionTree.OperatorPosition operatorPosition, ParseTree operand)
public static UpdateExpressionTree prefix(SourceRange location, Token operator, ParseTree operand)
public static UpdateExpressionTree postfix(SourceRange location, Token operator, ParseTree operand)
Copyright © 2009-2019 Google. All Rights Reserved.