use of org.kie.dmn.feel.lang.ast.ContextEntryNode in project drools by kiegroup.
the class ASTBuilderVisitor method visitContextEntries.
@Override
public BaseNode visitContextEntries(FEEL_1_1Parser.ContextEntriesContext ctx) {
List<BaseNode> nodes = new ArrayList<>();
scopeHelper.pushScope();
for (FEEL_1_1Parser.ContextEntryContext c : ctx.contextEntry()) {
// forced cast similarly to visitFunctionDefinition() method
ContextEntryNode visited = (ContextEntryNode) visit(c);
if (visited != null) {
nodes.add(visited);
scopeHelper.addType(visited.getName().getText(), visited.getResultType());
}
}
scopeHelper.popScope();
return ASTBuilderFactory.newListNode(ctx, nodes);
}
Aggregations