internal LabelScope(LabelScope parent, string name = null, bool isLoop = true) { Name = name; IsLoop = isLoop; Parent = parent; _break = Et.Label(typeof(void), "#break"); if(IsLoop) _continue = Et.Label(typeof(void), "#continue"); }
internal void EnterLabelScope(string name, bool isLoop) { if (_labelScope == null) { _labelScope = new LabelScope(name, isLoop); } else { _labelScope = _labelScope.Enter(name, isLoop); } }
internal void ExitLabelScope() { _labelScope = _labelScope.Exit(); }