import static org.simantics.scl.compiler.elaboration.expressions.Expressions.var;\r
\r
import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;\r
-import org.simantics.scl.compiler.common.names.Name;\r
+import org.simantics.scl.compiler.common.names.Names;\r
import org.simantics.scl.compiler.elaboration.contexts.SimplificationContext;\r
import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;\r
import org.simantics.scl.compiler.elaboration.contexts.TypingContext;\r
else {\r
Variable accumulator = newVar("accum", Types.apply(ARRAY_LIST, elType));\r
result =\r
- apply(context, Types.PROC, Name.create("ArrayList", "freeze"), elType,\r
+ apply(context.getCompilationContext(), Types.PROC, Names.ArrayList_freeze, elType,\r
var(accumulator));\r
Expression innerExpression = \r
- apply(context, Types.PROC, Name.create("ArrayList", "add"), elType,\r
+ apply(context.getCompilationContext(), Types.PROC, Names.ArrayList_add, elType,\r
var(accumulator), expression);\r
try {\r
QueryCompilationContext queryCompilationContext =\r
return new EError(getLocation());\r
}\r
result = let(accumulator,\r
- apply(context, Types.PROC, Name.create("ArrayList", "new"), elType, tuple()),\r
+ apply(context.getCompilationContext(), Types.PROC, Names.ArrayList_new, elType, tuple()),\r
result\r
);\r
}\r