From d5a4fb60e3b62f4dc1b67c83cd62c1a264bb4a12 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 1 Jan 2016 20:00:02 +0000 Subject: Generate variable IDs without Eclipse keys --- .../java/org/zwobble/couscous/ast/VariableDeclaration.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java') diff --git a/src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java b/src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java index 713f3a6..5932371 100644 --- a/src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java +++ b/src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java @@ -1,21 +1,23 @@ package org.zwobble.couscous.ast; +import org.zwobble.couscous.ast.identifiers.Identifier; + public class VariableDeclaration { - public static VariableDeclaration var(String id, String name, TypeName type) { + public static VariableDeclaration var(Identifier id, String name, TypeName type) { return new VariableDeclaration(id, name, type); } - private final String id; + private final Identifier id; private final String name; private final TypeName type; - private VariableDeclaration(String id, String name, TypeName type) { + private VariableDeclaration(Identifier id, String name, TypeName type) { this.id = id; this.name = name; this.type = type; } - public String getId() { + public Identifier getId() { return id; } -- cgit v1.2.3