diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-15 23:14:08 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-15 23:20:03 +0100 |
| commit | d995649e3bab94002b439aebcc93e7d3f16b13fc (patch) | |
| tree | 5ddc0b1e224e8bda7201b621e089e8f3a8f7f6b8 /src/test/java/org/zwobble/couscous/tests/backends/csharp | |
| parent | 9a032e3bda13169959e5022ca21e7f160edf351f (diff) | |
Remove Identifiers in favour of instance methods
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/backends/csharp')
| -rw-r--r-- | src/test/java/org/zwobble/couscous/tests/backends/csharp/CsharpSerializerTests.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/org/zwobble/couscous/tests/backends/csharp/CsharpSerializerTests.java b/src/test/java/org/zwobble/couscous/tests/backends/csharp/CsharpSerializerTests.java index 2572f8e..e3dc9ba 100644 --- a/src/test/java/org/zwobble/couscous/tests/backends/csharp/CsharpSerializerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/backends/csharp/CsharpSerializerTests.java @@ -2,7 +2,7 @@ package org.zwobble.couscous.tests.backends.csharp; import org.junit.Test; import org.zwobble.couscous.ast.*; -import org.zwobble.couscous.ast.identifiers.Identifiers; +import org.zwobble.couscous.ast.identifiers.Identifier; import org.zwobble.couscous.ast.sugar.SwitchNode; import org.zwobble.couscous.backends.csharp.CsharpSerializer; import org.zwobble.couscous.tests.TestIds; @@ -168,7 +168,7 @@ public class CsharpSerializerTests { list(ScalarType.of("Z")), list(), ScalarType.of("Y"), - signature("y", list(typeParameter(Identifiers.method(Identifiers.forType("X"), "y"), "T")), list(), ScalarType.of("Y")))); + signature("y", list(typeParameter(Identifier.forType("X").method("y"), "T")), list(), ScalarType.of("Y")))); assertEquals("x.y<Z>()", output); } @@ -413,8 +413,8 @@ public class CsharpSerializerTests { @Test public void methodWithTypeParameters() { MethodNode methodNode = MethodNode.staticMethod("nothing") - .typeParameter(formalTypeParameter(Identifiers.method(Identifiers.forType("com.Example.example"), "nothing"), "T")) - .typeParameter(formalTypeParameter(Identifiers.method(Identifiers.forType("com.Example.example"), "nothing"), "U")) + .typeParameter(formalTypeParameter(Identifier.forType("com.Example.example").method("nothing"), "T")) + .typeParameter(formalTypeParameter(Identifier.forType("com.Example.example").method("nothing"), "U")) .returns(ScalarType.of("void")) .build(); @@ -568,8 +568,8 @@ public class CsharpSerializerTests { @Test public void interfaceWithMethodWithTypeParameters() { MethodNode method = MethodNode.staticMethod("nothing") - .typeParameter(formalTypeParameter(Identifiers.method(Identifiers.forType("com.Example.example"), "nothing"), "T")) - .typeParameter(formalTypeParameter(Identifiers.method(Identifiers.forType("com.Example.example"), "nothing"), "U")) + .typeParameter(formalTypeParameter(Identifier.forType("com.Example.example").method("nothing"), "T")) + .typeParameter(formalTypeParameter(Identifier.forType("com.Example.example").method("nothing"), "U")) .returns(ScalarType.of("void")) .build(); |
