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

+ added helper method for dealing with formal parameters of altsteps

parent d3df4597
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -362,6 +362,26 @@ class TTCN3ScopeHelper {
		list
	}

	def static Iterable<RefValueElement> altstepLocalParameter(AltstepDef altstep) {
		val list = newArrayList
		if (altstep.params == null)
			return list;

		for (p : altstep.params.params) {
			if (p.timer != null) {
				list.add(p.timer)
			} else if (p.value != null) {
				list.add(p.value)
			} else if (p.template != null) {
				list.add(p.template)
			} else if (p.port != null) {
				list.add(p.port)
			}
		}
		list
	}


	def static void componentScopeValueRefs(ComponentDef component, ArrayList<EObject> list, boolean searchTimer,
		boolean searchVar, boolean searchTemplate) {