blob: 880a7fde90adc04d53a074adebf5e7c821bedd96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.zwobble.couscous.ast;
import org.zwobble.couscous.ast.visitors.StatementNodeVisitor;
import org.zwobble.couscous.values.TypeReference;
import lombok.Value;
@Value(staticConstructor="localVariableDeclaration")
public class LocalVariableDeclarationNode implements VariableNode, StatementNode {
int id;
TypeReference type;
String name;
ExpressionNode initialValue;
@Override
public <T> T accept(StatementNodeVisitor<T> visitor) {
return visitor.visit(this);
}
}
|