Commit 7334272d authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fix for #58 where over specific runs on is erroneously triggered in certain cases

parent 02155c34
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -1020,7 +1020,10 @@ class CodeStyleValidator extends AbstractDeclarativeValidator {
							if (o.isRunningOnSameComponent(parent) && o.runsOn.component.isReferencedComponentSpec(o)) {
								return true
							} else {
								nextLevelCheck = o.nextLevelFunctionsOrAltsteps(consideredAltOrFunc)
								var ArrayList<TTCN3Reference> nlc = new ArrayList<TTCN3Reference>()
								nlc.addAll(nextLevelCheck)
								nlc.addAll(o.nextLevelFunctionsOrAltsteps(consideredAltOrFunc))
								nextLevelCheck = nlc
							}
						}
					} else {
@@ -1037,7 +1040,10 @@ class CodeStyleValidator extends AbstractDeclarativeValidator {
							if (o.isRunningOnSameComponent(parent) && o.spec.component.isReferencedComponentSpec(o)) {
								return true
							} else {
								nextLevelCheck = o.nextLevelFunctionsOrAltsteps(consideredAltOrFunc)
								var ArrayList<TTCN3Reference> nlc = new ArrayList<TTCN3Reference>()
								nlc.addAll(nextLevelCheck)
								nlc.addAll(o.nextLevelFunctionsOrAltsteps(consideredAltOrFunc))
								nextLevelCheck = nlc
							}
						}
					} else {
@@ -1061,7 +1067,6 @@ class CodeStyleValidator extends AbstractDeclarativeValidator {
				}
			}
		} while (nextLevelCheck != null && !nextLevelCheck.empty)

		return false
	}