From 6f11bbeab6957974b3b30018deb46ef8ecde258f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 11 Dec 2024 00:17:53 +0000 Subject: Move field positionality from struct field to struct --- .../org/shedlang/compiler/parser/ParserStructDefinitionTests.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/test/java/org/shedlang/compiler/parser') 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) )) ); } -- cgit v1.2.3