Boo.Lang.Compiler.Steps.MethodBodyState.AddLabelReference C# (CSharp) Method

AddLabelReference() public method

public AddLabelReference ( ReferenceExpression node ) : void
node Boo.Lang.Compiler.Ast.ReferenceExpression
return void
        public void AddLabelReference(ReferenceExpression node)
        {
            _labelReferences.Add(node);
        }

Usage Example

コード例 #1
0
ファイル: BranchChecking.cs プロジェクト: codehaus/boo
        public override void OnMethodInvocationExpression(MethodInvocationExpression node)
        {
            if (BuiltinFunction.Switch != node.Target.Entity)
            {
                return;
            }

            for (int i = 1; i < node.Arguments.Count; ++i)
            {
                ReferenceExpression label = (ReferenceExpression)node.Arguments[i];
                _state.AddLabelReference(label);
            }
        }