コード例 #1
0
ファイル: LabelScope.cs プロジェクト: cpbtechnology/IronJS
        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");
        }
コード例 #2
0
ファイル: FunctionScope.cs プロジェクト: cpbtechnology/IronJS
 internal void EnterLabelScope(string name, bool isLoop)
 {
     if (_labelScope == null)
     {
         _labelScope = new LabelScope(name, isLoop);
     }
     else
     {
         _labelScope = _labelScope.Enter(name, isLoop);
     }
 }
コード例 #3
0
ファイル: FunctionScope.cs プロジェクト: cpbtechnology/IronJS
 internal void ExitLabelScope()
 {
     _labelScope = _labelScope.Exit();
 }