Project

General

Profile

« Previous | Next » 

Revision 4

Added by Willibald K. almost 10 years ago

committing bugfix for self.X resolving

View differences:

trunk/compiler/ooasCompiler/src/org/momut/ooas/visitors/OoaResolveExpressionsVisitor.java
switch (anid.kind())
{
case TypeIdentifier:
return new TypeExpression(anid.type(), expression.line(), expression.pos());
// only return a TypeExpression if this TypeIdentifier didn't come from a "self"
if (anid instanceof SelfTypeIdentifier) {
final IdentifierExpression result = new IdentifierExpression(anid, expression.line(), expression.pos());
result.setIsSelf(true);
return result;
} else
return new TypeExpression(anid.type(), expression.line(), expression.pos());
case MethodIdentifier:
m_entryExpression.callTargets().add((FunctionIdentifier)anid);

Also available in: Unified diff