Boo.Lang.Compiler.Steps.MethodBodyState.AddLabel C# (CSharp) Метод

AddLabel() публичный Метод

public AddLabel ( InternalLabel label ) : void
label Boo.Lang.Compiler.TypeSystem.InternalLabel
Результат void
        public void AddLabel(InternalLabel label)
        {
            _labels.Add(label.Name, label);
        }

Usage Example

Пример #1
0
        override public void OnLabelStatement(LabelStatement node)
        {
            AstAnnotations.SetTryBlockDepth(node, _state.TryBlockDepth);

            if (_state.ResolveLabel(node.Name) != null)
            {
                Error(CompilerErrorFactory.LabelAlreadyDefined(node, _currentMethod, node.Name));
                return;
            }

            _state.AddLabel(new InternalLabel(node));
        }
All Usage Examples Of Boo.Lang.Compiler.Steps.MethodBodyState::AddLabel