Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import ASTNode from "./ASTNode";
import { Expression } from "./expressions";
import CodeLocation from "../CodeLocation";
import ASTVisitor from "./ASTVisitor";
import Token from "../Token";
export default class AssignmentNode extends ASTNode {
/**
* The name of the value being assigned
*/
name: string;
/**
* THe value of the name being assigned.
*/
value: Expression;
constructor(
pos: CodeLocation,
name: string,
value: Expression,
public tokens: {
name: Token;
equals: Token;
trailingCommas: Token[];
semicolon: Token
}
) {
super(pos);
this.name = name;
this.value = value;
}
accept<R>(visitor: ASTVisitor<R>): R {
return visitor.visitAssignmentNode(this);
}
}
df46aceb2This file is pinned to the selected release. Download the original to open it in your design tool.