From 0e0d2859842bd6b51c339ca1aaca8f882e70720c Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 10 May 2026 15:00:44 +0100 Subject: Add doc comment to struct definition nodes --- .../hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java | 1 + .../compiler/typechecker/TypeCheckerStructDefinitionTests.java | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'src/test/java/org') diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java index 737c7db..1bb84d1 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerNamespaceTests.java @@ -23,6 +23,7 @@ public class TypeCheckerNamespaceTests { new UntypedStructDefinitionNode( "X", List.of(), + "", NullSource.INSTANCE ) ), diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java index 6cd6732..117bce4 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/typechecker/TypeCheckerStructDefinitionTests.java @@ -27,6 +27,7 @@ public class TypeCheckerStructDefinitionTests { var untyped = new UntypedStructDefinitionNode( "X", List.of(), + "", NullSource.INSTANCE ); var context = TypeCheckerContextArb.namespaceContext(NamespaceName.of("a", "b")); @@ -53,6 +54,7 @@ public class TypeCheckerStructDefinitionTests { new UntypedStructFieldDefinitionNode("a", UntypedArb.typeLevelReference("Int32"), NullSource.INSTANCE), new UntypedStructFieldDefinitionNode("b", UntypedArb.typeLevelReference("Int64"), NullSource.INSTANCE) ), + "", NullSource.INSTANCE ); var context = TypeCheckerContextArb.namespaceContext(NamespaceName.of("a", "b")); @@ -102,6 +104,7 @@ public class TypeCheckerStructDefinitionTests { List.of( new UntypedStructFieldDefinitionNode("value", UntypedArb.typeLevelReference("Y"), NullSource.INSTANCE) ), + "", NullSource.INSTANCE ), new UntypedStructDefinitionNode( @@ -109,6 +112,7 @@ public class TypeCheckerStructDefinitionTests { List.of( new UntypedStructFieldDefinitionNode("value", UntypedArb.typeLevelReference("Int32"), NullSource.INSTANCE) ), + "", NullSource.INSTANCE ) ), -- cgit v1.2.3