Commit 8cc71032 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fixed endless loop when constructs other than altsteps and functions are used

parent 6a741731
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1052,6 +1052,12 @@ class CodeStyleValidator extends AbstractDeclarativeValidator {
					nlc.addAll(nextLevelCheck)
					nlc.remove(o)
					nextLevelCheck = nlc
				} else {
					//handle other cases?
					var ArrayList<TTCN3Reference> nlc = new ArrayList<TTCN3Reference>()
					nlc.addAll(nextLevelCheck)
					nlc.remove(o)
					nextLevelCheck = nlc
				}
			}
		} while (nextLevelCheck != null && !nextLevelCheck.empty)