diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-01-01 20:00:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-01-01 20:01:19 +0000 |
| commit | d5a4fb60e3b62f4dc1b67c83cd62c1a264bb4a12 (patch) | |
| tree | cc5e2dfaf6468370a841e41dd91285b76e6cfd2f /src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java | |
| parent | 4fd8b4132fd8f49b5368b86ebdbcdb84a0bdf7d0 (diff) | |
Generate variable IDs without Eclipse keys
Diffstat (limited to 'src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/ast/VariableDeclaration.java | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |
