aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/couscous/tests/TestIds.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/TestIds.java')
-rw-r--r--src/test/java/org/zwobble/couscous/tests/TestIds.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/java/org/zwobble/couscous/tests/TestIds.java b/src/test/java/org/zwobble/couscous/tests/TestIds.java
index 50f0ad9..b32cf84 100644
--- a/src/test/java/org/zwobble/couscous/tests/TestIds.java
+++ b/src/test/java/org/zwobble/couscous/tests/TestIds.java
@@ -1,5 +1,11 @@
package org.zwobble.couscous.tests;
+import org.zwobble.couscous.ast.identifiers.Identifier;
+
public class TestIds {
- public static final String ANY_ID = "[id]";
+ public static final Identifier ANY_ID = Identifier.TOP.extend("[any id]");
+
+ public static Identifier id(String name) {
+ return ANY_ID.extend(name);
+ }
}