aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-10-25 21:53:42 +0100
committerMichael Williamson <mike@zwobble.org>2023-10-25 21:53:42 +0100
commit693c3afe929b693de48346f281ce5b1d95d0fcdb (patch)
tree30d9eba67b154e3616a9c72739e8979a8638f586 /src/test/java
parent5a5e3cad6edd5af97522c99f7b0ffe145d200db0 (diff)
Introduce TypedFunctionSignatureNode
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/shedlang/compiler/ast/typed/TypedFunctionDefinitionNodeMatcher.java8
1 files changed, 4 insertions, 4 deletions
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<TypedName
}
public TypedFunctionDefinitionNodeMatcher withEffect(Matcher<Optional<? extends TypedTypeLevelExpressionNode<?>>> effect) {
- return with(has("effect", x -> x.effect(), effect));
+ return with(has("effect", x -> x.signature().effect(), effect));
}
public TypedFunctionDefinitionNodeMatcher withFreeVariables(Matcher<Iterable<FreeVariable>> freeVariables) {
@@ -47,14 +47,14 @@ public class TypedFunctionDefinitionNodeMatcher extends MatcherBuilder<TypedName
}
public TypedFunctionDefinitionNodeMatcher withParams(Matcher<TypedParamsNode> params) {
- return with(has("params", x -> x.params(), params));
+ return with(has("params", x -> x.signature().params(), params));
}
public TypedFunctionDefinitionNodeMatcher withReturnType(Matcher<TypedTypeLevelExpressionNode<?>> 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)));
}
}