diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-05-10 15:00:44 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-05-10 15:00:44 +0100 |
| commit | 0e0d2859842bd6b51c339ca1aaca8f882e70720c (patch) | |
| tree | fd5d65ac145bb6ed3a35b25c689da22f15f8fd4d /src/test/java/org/zwobble | |
| parent | 73eaea82c0bfb5a97f2eca9ffb44f86dbed6473c (diff) | |
Add doc comment to struct definition nodes
Diffstat (limited to 'src/test/java/org/zwobble')
2 files changed, 5 insertions, 0 deletions
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 ) ), |
