From 8212af7c70d1603013da32e0501969ed98431caf Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 11 May 2016 21:10:53 -0400 Subject: Adapt to upstream changes --- .../src/main/java/bjc/dicelang/ast/DiceASTInliner.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'dice-lang/src/main/java/bjc/dicelang/ast/DiceASTInliner.java') diff --git a/dice-lang/src/main/java/bjc/dicelang/ast/DiceASTInliner.java b/dice-lang/src/main/java/bjc/dicelang/ast/DiceASTInliner.java index 5032dc4..ea5a844 100644 --- a/dice-lang/src/main/java/bjc/dicelang/ast/DiceASTInliner.java +++ b/dice-lang/src/main/java/bjc/dicelang/ast/DiceASTInliner.java @@ -1,8 +1,8 @@ package bjc.dicelang.ast; import bjc.utils.funcdata.FunctionalList; -import bjc.utils.funcdata.IFunctionalList; -import bjc.utils.funcdata.IFunctionalMap; +import bjc.utils.funcdata.IList; +import bjc.utils.funcdata.IMap; import bjc.utils.funcdata.ITree; import bjc.utils.funcdata.Tree; @@ -27,16 +27,16 @@ public class DiceASTInliner { * @return The inlined AST */ public static ITree inlineAll(ITree ast, - IFunctionalMap> enviroment) { + IMap> enviroment) { // Tell the compiler that the null is for the entire varargs // parameter, not a single one with a null value return selectiveInline(ast, enviroment, (String[]) null); } private static ITree inlineNode(IDiceASTNode node, - IFunctionalMap> enviroment, + IMap> enviroment, boolean specificInline, - IFunctionalList variableNames) { + IList variableNames) { if (node.getType() != DiceASTType.VARIABLE) { return new Tree<>(node); } @@ -79,8 +79,8 @@ public class DiceASTInliner { */ public static ITree selectiveInline( ITree ast, - IFunctionalMap> enviroment, - IFunctionalList variables) { + IMap> enviroment, + IList variables) { return selectiveInline(ast, enviroment, variables.toArray(new String[0])); } @@ -98,10 +98,10 @@ public class DiceASTInliner { */ public static ITree selectiveInline( ITree ast, - IFunctionalMap> enviroment, + IMap> enviroment, String... variables) { if (variables != null && variables.length > 0) { - IFunctionalList variableNames = new FunctionalList<>( + IList variableNames = new FunctionalList<>( variables); return ast.flatMapTree((node) -> { -- cgit v1.2.3