Project

General

Profile

Revision 4

Added by Willibald K. over 9 years ago

committing bugfix for self.X resolving

View differences:

trunk/compiler/ooasCompiler/src/org/momut/ooas/visitors/OoaResolveExpressionsVisitor.java
676 676
			switch (anid.kind())
677 677
			{
678 678
			case TypeIdentifier:
679
				return new TypeExpression(anid.type(), expression.line(), expression.pos());
679
				// only return a TypeExpression if this TypeIdentifier didn't come from a "self"
680
				if (anid instanceof SelfTypeIdentifier) {
681
					final IdentifierExpression result = new IdentifierExpression(anid, expression.line(), expression.pos());
682
					result.setIsSelf(true);
683
					return result;
684
				} else
685
					return new TypeExpression(anid.type(), expression.line(), expression.pos());
680 686

  
681 687
			case MethodIdentifier:
682 688
				m_entryExpression.callTargets().add((FunctionIdentifier)anid);

Also available in: Unified diff