Commit b1b10813 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fix for subtypes in nested type references, #30

parent a54dc940
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ import de.ugoe.cs.swe.tTCN3.ImportAlias
import de.ugoe.cs.swe.tTCN3.ImportDef
import de.ugoe.cs.swe.tTCN3.ExtendedFieldOrTypeReference
import de.ugoe.cs.swe.tTCN3.ArrayOrMixedExpression
import de.ugoe.cs.swe.tTCN3.SubTypeDefNamed

//TODO: switch to TTCN3LocalScopeProvider as base class?
class TTCN3ScopeProvider extends AbstractDeclarativeScopeProvider {
@@ -858,6 +859,10 @@ class TTCN3ScopeProvider extends AbstractDeclarativeScopeProvider {
			} else if (field.nestedType !== null) {
				field.nestedFieldTypeElements
			}
		} else if (field instanceof SubTypeDefNamed) {
			if (field.type !== null) {
				field.type.ref.scopeReferencedFields
			}
		}
	}