From c7fbd6c9fdc3fe140b0f1ff713855ab3a3ad599e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 23 May 2026 11:05:03 +0100 Subject: Add a notion of JavaCustomArea to type declarations --- .../hobgoblin/compiler/output/lang/java/JavaWriterTests.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/test/java/org') 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 ); -- cgit v1.2.3