summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-05-23 11:05:03 +0100
committerMichael Williamson <mike@zwobble.org>2026-05-23 11:05:03 +0100
commitc7fbd6c9fdc3fe140b0f1ff713855ab3a3ad599e (patch)
treec8f389784231f92458b671b68e2562e52891a6fe /src/test/java
parentea7f313b29b294e19f9387699d097629f8623575 (diff)
Add a notion of JavaCustomArea to type declarations
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java
index f54f0bf..280dc21 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java
@@ -18,6 +18,7 @@ public class JavaWriterTests {
var java = new JavaClassDeclaration(
"Rectangle",
List.of(),
+ JavaCustomArea.EMPTY,
DocComment.EMPTY
);
@@ -49,6 +50,7 @@ public class JavaWriterTests {
JavaBlock.EMPTY
)
),
+ JavaCustomArea.EMPTY,
DocComment.EMPTY
);
@@ -70,6 +72,7 @@ public class JavaWriterTests {
var java = new JavaClassDeclaration(
"Point",
List.of(),
+ JavaCustomArea.EMPTY,
new DocComment("A 2D point.")
);
@@ -87,6 +90,7 @@ public class JavaWriterTests {
var java = new JavaInterfaceDeclaration(
"Shape",
List.of(),
+ JavaCustomArea.EMPTY,
DocComment.EMPTY
);
@@ -106,6 +110,7 @@ public class JavaWriterTests {
JavaTypeRef.topLevel(List.of("abc", "def"), "One"),
JavaTypeRef.topLevel(List.of("abc", "def"), "Two")
),
+ JavaCustomArea.EMPTY,
DocComment.EMPTY
);
@@ -122,6 +127,7 @@ public class JavaWriterTests {
var java = new JavaInterfaceDeclaration(
"Shape",
List.of(),
+ JavaCustomArea.EMPTY,
new DocComment("A 2D shape.")
);
@@ -141,6 +147,7 @@ public class JavaWriterTests {
List.of(),
List.of(),
List.of(),
+ JavaCustomArea.EMPTY,
DocComment.EMPTY
);
@@ -159,6 +166,7 @@ public class JavaWriterTests {
List.of(),
List.of(),
List.of(),
+ JavaCustomArea.EMPTY,
new DocComment("A 2D point.")
);
@@ -193,6 +201,7 @@ public class JavaWriterTests {
JavaBlock.EMPTY
)
),
+ JavaCustomArea.EMPTY,
DocComment.EMPTY
);