use of org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.M3Parser.MappingContext in project legend-pure by finos.
the class AntlrContextToM3CoreInstance method mapping.
public TemporaryPureSetImplementation mapping(MappingContext ctx, String cl, LambdaContext lambdaContext, ImportGroup importId) {
ImportStub src = (ctx.qualifiedName() == null) ? null : ImportStubInstance.createPersistent(this.repository, this.sourceInformation.getPureSourceInformation(ctx.qualifiedName().getStart()), getQualifiedNameString(ctx.qualifiedName()), importId);
CoreInstance filter = (ctx.combinedExpression() == null) ? null : combinedExpression(ctx.combinedExpression(), "", Lists.mutable.empty(), lambdaContext, "", true, importId, true);
MutableList<TemporaryPurePropertyMapping> propertyMappings = ListIterate.collect(ctx.mappingLine(), mlc -> mappingLine(mlc, lambdaContext, cl, importId));
return TemporaryPureSetImplementation.build(src, filter, propertyMappings);
}
Aggregations