diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-12-06 11:20:51 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-12-06 11:20:51 +0000 |
| commit | 51e8ff721cc7079212119ba44fcc4bf0f9818d1e (patch) | |
| tree | 5075238f12957b80ac0b9a3adff5d547002e99b9 /src/main/java/org/zwobble/couscous/ast/LiteralNode.java | |
| parent | 9ecc34a6884473feda3882c1339b29ac1a8c6557 (diff) | |
Replace captured variable references in method bodies
Diffstat (limited to 'src/main/java/org/zwobble/couscous/ast/LiteralNode.java')
| -rw-r--r-- | src/main/java/org/zwobble/couscous/ast/LiteralNode.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/couscous/ast/LiteralNode.java b/src/main/java/org/zwobble/couscous/ast/LiteralNode.java index ca005de..1aa3293 100644 --- a/src/main/java/org/zwobble/couscous/ast/LiteralNode.java +++ b/src/main/java/org/zwobble/couscous/ast/LiteralNode.java @@ -6,6 +6,8 @@ import org.zwobble.couscous.values.IntegerValue; import org.zwobble.couscous.values.PrimitiveValue; import org.zwobble.couscous.values.StringValue; +import java.util.function.Function; + import static org.zwobble.couscous.values.PrimitiveValues.value; public class LiteralNode implements ExpressionNode { @@ -51,6 +53,11 @@ public class LiteralNode implements ExpressionNode { } @Override + public ExpressionNode replaceExpressions(Function<ExpressionNode, ExpressionNode> replace) { + return this; + } + + @Override public String toString() { return "LiteralNode(value=" + value + ", type=" + type + ")"; } |
