Revision 12
Added by over 7 years ago
OoaAstEmitter.java | ||
---|---|---|
93 | 93 |
import org.momut.ooas.ast.types.IntType; |
94 | 94 |
import org.momut.ooas.ast.types.ListType; |
95 | 95 |
import org.momut.ooas.ast.types.MapType; |
96 |
import org.momut.ooas.ast.types.MetaType; |
|
96 | 97 |
import org.momut.ooas.ast.types.NullType; |
97 | 98 |
import org.momut.ooas.ast.types.OoActionSystemInstance; |
98 | 99 |
import org.momut.ooas.ast.types.OoActionSystemType; |
... | ... | |
645 | 646 |
listType.maxNumberOfElements()); |
646 | 647 |
} |
647 | 648 |
|
649 |
@Override |
|
650 |
public void visit(MetaType metaType) |
|
651 |
{ |
|
652 |
final T type = createType(metaType); |
|
648 | 653 |
|
654 |
final Identifier id = metaType.identifier(); |
|
655 |
VisitSub(id, metaType); |
|
656 |
VisitSub(metaType.Type(), metaType); |
|
657 |
|
|
658 |
m_copier.initMetaType( |
|
659 |
type, |
|
660 |
m_convertedIdentifiers.get(id), |
|
661 |
metaType.isAnonymousType(), |
|
662 |
m_convertedTypes.get(metaType.Type())); |
|
663 |
} |
|
664 |
|
|
665 |
|
|
649 | 666 |
@Override |
650 | 667 |
public void visit(TupleType tupleType) |
651 | 668 |
{ |
... | ... | |
1007 | 1024 |
{ |
1008 | 1025 |
final T expr = createExpression(typeExpression); |
1009 | 1026 |
final ExprData d = visitBasicExpression(typeExpression); |
1027 |
VisitSub(typeExpression.referredType(), typeExpression); |
|
1028 |
|
|
1010 | 1029 |
m_copier.initTypeExpression( |
1011 | 1030 |
expr, |
1012 | 1031 |
d.line, |
1013 | 1032 |
d.pos, |
1014 | 1033 |
d.typeRef, |
1015 | 1034 |
d.callTargetsIdentifierListRef, |
1016 |
d.symbTabRef); |
|
1035 |
d.symbTabRef, |
|
1036 |
m_convertedTypes.get(typeExpression.referredType())); |
|
1017 | 1037 |
} |
1018 | 1038 |
|
1019 | 1039 |
@Override |
Also available in: Unified diff
latest version of the ooas compiler, with grammar version 1.10