Commit 8b086207 authored by Daniel Honsel's avatar Daniel Honsel
Browse files

improved recognition of variable references

parent 14a6de3d
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -188,9 +188,13 @@ class TTCN3ScopeHelper {
				}
			}
			if (l.locInst != null && l.locInst.variable != null) {
				val varList = l.locInst.variable.list as VarList
				for (SingleVarInstance d : varList.variables) {
					list.add(d);
				val varList = l.locInst.variable.list
				val tempList = l.locInst.variable.tempList
				if (varList != null) {
					list.addAll(varList.variables);
				}
				if (tempList != null) {
					list.addAll(tempList.variables);
				}
			}
		}
@@ -220,9 +224,13 @@ class TTCN3ScopeHelper {
				}
			}
			if (o.def.localInst != null && o.def.localInst.variable != null) {
				val varList = o.def.localInst.variable.list as VarList
				for (SingleVarInstance d : varList.variables) {
					list.add(d);
				val varList = o.def.localInst.variable.list
				val tempList =o.def.localInst.variable.tempList
				if (varList != null) {
					list.addAll(varList.variables);
				}
				if (tempList != null) {
					list.addAll(tempList.variables);
				}				
			}
		}