aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/shedlang/compiler/ast
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-11-07 18:41:16 +0000
committerMichael Williamson <mike@zwobble.org>2023-11-07 18:41:16 +0000
commitb02598aa7b8d02e2f1177177d6e0cd7b2d805198 (patch)
tree07005fad55512bd5645e4fea216a7b800d44a9bc /src/test/java/org/shedlang/compiler/ast
parent48560d9b326a9edb73231e816791edc1b196b1b1 (diff)
Rename effect fields to effect methods
Diffstat (limited to 'src/test/java/org/shedlang/compiler/ast')
-rw-r--r--src/test/java/org/shedlang/compiler/ast/typed/TypedTryNodeMatcher.java6
-rw-r--r--src/test/java/org/shedlang/compiler/ast/untyped/UntypedTryNodeMatcher.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/org/shedlang/compiler/ast/typed/TypedTryNodeMatcher.java b/src/test/java/org/shedlang/compiler/ast/typed/TypedTryNodeMatcher.java
index 08e203fd..6998f85a 100644
--- a/src/test/java/org/shedlang/compiler/ast/typed/TypedTryNodeMatcher.java
+++ b/src/test/java/org/shedlang/compiler/ast/typed/TypedTryNodeMatcher.java
@@ -38,9 +38,9 @@ public class TypedTryNodeMatcher extends MatcherBuilder<
return with(has("body", x -> x.body(), body));
}
- public TypedTryNodeMatcher withHandlerFields(
- Matcher<? super Iterable<TypedFunctionDefinitionNode>> handlerFields
+ public TypedTryNodeMatcher withHandlerMethods(
+ Matcher<? super Iterable<TypedFunctionDefinitionNode>> handlerMethods
) {
- return with(has("handlerFields", x -> x.handlerFields(), handlerFields));
+ return with(has("handlerMethods", x -> x.handlerMethods(), handlerMethods));
}
}
diff --git a/src/test/java/org/shedlang/compiler/ast/untyped/UntypedTryNodeMatcher.java b/src/test/java/org/shedlang/compiler/ast/untyped/UntypedTryNodeMatcher.java
index 5a3ab9f0..eac572ab 100644
--- a/src/test/java/org/shedlang/compiler/ast/untyped/UntypedTryNodeMatcher.java
+++ b/src/test/java/org/shedlang/compiler/ast/untyped/UntypedTryNodeMatcher.java
@@ -42,9 +42,9 @@ public class UntypedTryNodeMatcher extends MatcherBuilder<
return with(has("handledEffect", x -> x.handledEffect(), handledEffect));
}
- public UntypedTryNodeMatcher withHandlerFields(
- Matcher<Iterable<? extends UntypedFunctionDefinitionNode>> handlerFields
+ public UntypedTryNodeMatcher withHandlerMethods(
+ Matcher<Iterable<? extends UntypedFunctionDefinitionNode>> handlerMethods
) {
- return with(has("handlerFields", x -> x.handlerFields(), handlerFields));
+ return with(has("handlerMethods", x -> x.handlerMethods(), handlerMethods));
}
}