Revision 12
Added by over 7 years ago
CadpExpression.java | ||
---|---|---|
213 | 213 |
@Override |
214 | 214 |
public void visit(TypeExpression typeExpression) |
215 | 215 |
{ |
216 |
m_emitter.Append(typeExpression.type().identifier().tokenText());
|
|
216 |
m_emitter.Append(typeExpression.referredType().identifier().tokenText());
|
|
217 | 217 |
} |
218 | 218 |
|
219 | 219 |
@Override |
... | ... | |
438 | 438 |
{ |
439 | 439 |
// if this instanceof some "<enumType>.<enumValue>" access, then just print the numeric value of <enumValue> |
440 | 440 |
if (accessExpression.left().kind() == ExpressionKind.Type && |
441 |
((TypeExpression)accessExpression.left()).type().kind() == TypeKind.EnumeratedType )
|
|
441 |
((TypeExpression)accessExpression.left()).referredType().kind() == TypeKind.EnumeratedType )
|
|
442 | 442 |
{ |
443 | 443 |
accessExpression.right().Accept(this); |
444 | 444 |
return; |
Also available in: Unified diff
latest version of the ooas compiler, with grammar version 1.10