use of org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.M3Parser.NotExpressionContext in project legend-pure by finos.
the class AntlrContextToM3CoreInstance method notExpression.
private SimpleFunctionExpression notExpression(NotExpressionContext ctx, String exprName, MutableList<String> typeParametersNames, LambdaContext lambdaContext, String space, ImportGroup importId, boolean addLines) {
CoreInstance negated;
SimpleFunctionExpression result;
negated = this.expression(ctx.expression(), exprName, typeParametersNames, lambdaContext, space, true, importId, addLines);
result = SimpleFunctionExpressionInstance.createPersistent(this.repository, this.sourceInformation.getPureSourceInformation(ctx.NOT().getSymbol()), null, null, importId, null);
result._functionName("not");
result._parametersValues(Lists.mutable.of((ValueSpecification) negated));
return result;
}
Aggregations