Search in sources :

Example 1 with FunctionTypePureTypeContext

use of org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.M3Parser.FunctionTypePureTypeContext in project legend-pure by finos.

the class AntlrContextToM3CoreInstance method typeFunctionTypePureType.

private VariableExpression typeFunctionTypePureType(FunctionTypePureTypeContext ctx, MutableList<String> typeParametersNames, String space, ImportGroup importId, boolean addLines) {
    GenericType type = this.type(ctx.type(), typeParametersNames, spacePlusTabs(space, 3), importId, addLines);
    Multiplicity multiplicity = this.buildMultiplicity(ctx.multiplicity().multiplicityArgument());
    return VariableExpressionInstance.createPersistent(this.repository, type, multiplicity, "");
}
Also used : GenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType) Multiplicity(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.multiplicity.Multiplicity)

Aggregations

Multiplicity (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.multiplicity.Multiplicity)1 GenericType (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType)1