(ctx: AssignStatementContext)
| 209 | } |
| 210 | |
| 211 | visitAssignStatement(ctx: AssignStatementContext): AssignNode { |
| 212 | const identifier = new IdentifierNode(ctx.Identifier().getText()); |
| 213 | identifier.location = Location.fromToken(ctx.Identifier().symbol); |
| 214 | |
| 215 | const expression = this.createAssignExpression(ctx); |
| 216 | const assign = new AssignNode(identifier, expression); |
| 217 | assign.location = Location.fromCtx(ctx); |
| 218 | return assign; |
| 219 | } |
| 220 | |
| 221 | // Builds the right-hand side expression for an assignStatement, rewriting compound |
| 222 | // forms (+=, -=, ++, --) as: identifier (+|-) rhs |
no test coverage detected