diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-12-11 00:17:53 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-12-11 00:17:53 +0000 |
| commit | 6f11bbeab6957974b3b30018deb46ef8ecde258f (patch) | |
| tree | 00cd403eb6fb15e62d8d9b5bf92bd88ad5d8be8f /src/test/java/org/shedlang/compiler/parser | |
| parent | f68860bbe29064318869cca0eaa4b2a2f39bddac (diff) | |
Move field positionality from struct field to struct
Diffstat (limited to 'src/test/java/org/shedlang/compiler/parser')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java b/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java index f5a77ab3..665da1e5 100644 --- a/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java +++ b/src/test/java/org/shedlang/compiler/parser/ParserStructDefinitionTests.java @@ -42,12 +42,10 @@ public class ParserStructDefinitionTests { .withFields(isSequence( isUntypedStructFieldDefinitionNode() .withName("name") - .withType(isUntypedTypeLevelReferenceNode("String")) - .withIsPositional(false), + .withType(isUntypedTypeLevelReferenceNode("String")), isUntypedStructFieldDefinitionNode() .withName("accessLevel") .withType(isUntypedTypeLevelReferenceNode("AccessLevel")) - .withIsPositional(false) )) ); } @@ -67,12 +65,10 @@ public class ParserStructDefinitionTests { .withFields(isSequence( isUntypedStructFieldDefinitionNode() .withName("name") - .withType(isUntypedTypeLevelReferenceNode("String")) - .withIsPositional(true), + .withType(isUntypedTypeLevelReferenceNode("String")), isUntypedStructFieldDefinitionNode() .withName("accessLevel") .withType(isUntypedTypeLevelReferenceNode("AccessLevel")) - .withIsPositional(true) )) ); } |
