From 693c3afe929b693de48346f281ce5b1d95d0fcdb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 25 Oct 2023 21:53:42 +0100 Subject: Introduce TypedFunctionSignatureNode --- .../compiler/ast/typed/TypedFunctionDefinitionNodeMatcher.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/org/shedlang/compiler/ast/typed/TypedFunctionDefinitionNodeMatcher.java b/src/test/java/org/shedlang/compiler/ast/typed/TypedFunctionDefinitionNodeMatcher.java index c90e2578..92e0c8e1 100644 --- a/src/test/java/org/shedlang/compiler/ast/typed/TypedFunctionDefinitionNodeMatcher.java +++ b/src/test/java/org/shedlang/compiler/ast/typed/TypedFunctionDefinitionNodeMatcher.java @@ -35,7 +35,7 @@ public class TypedFunctionDefinitionNodeMatcher extends MatcherBuilder>> effect) { - return with(has("effect", x -> x.effect(), effect)); + return with(has("effect", x -> x.signature().effect(), effect)); } public TypedFunctionDefinitionNodeMatcher withFreeVariables(Matcher> freeVariables) { @@ -47,14 +47,14 @@ public class TypedFunctionDefinitionNodeMatcher extends MatcherBuilder params) { - return with(has("params", x -> x.params(), params)); + return with(has("params", x -> x.signature().params(), params)); } public TypedFunctionDefinitionNodeMatcher withReturnType(Matcher> returnType) { - return with(has("returnType", x -> x.returnType(), returnType)); + return with(has("returnType", x -> x.signature().returnType(), returnType)); } public TypedFunctionDefinitionNodeMatcher withType(FunctionType type) { - return with(has("type", x -> x.type(), equalTo(type))); + return with(has("type", x -> x.signature().type(), equalTo(type))); } } -- cgit v1.2.3