Esempio n. 1
0
        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");
        }
Esempio n. 2
0
 internal void EnterLabelScope(string name, bool isLoop)
 {
     if (_labelScope == null)
     {
         _labelScope = new LabelScope(name, isLoop);
     }
     else
     {
         _labelScope = _labelScope.Enter(name, isLoop);
     }
 }
Esempio n. 3
0
 internal void ExitLabelScope()
 {
     _labelScope = _labelScope.Exit();
 }