Label() public static method

public static Label ( ICSharpCode.NRefactory.CSharp caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor ) : CaseLabel
caseLabel ICSharpCode.NRefactory.CSharp
scope IScope
visitor INRefcatoryExpressionVisitor
return CaseLabel
コード例 #1
0
        public Expression Update(LabelTarget labelTarget, Type type)
        {
            if (LabelTarget.Equals(labelTarget) && Type.Equals(type))
            {
                return(this);
            }

            return(AstExpression.Label(_labelStatement, ParentScope, Visitor));
        }
コード例 #2
0
        public Expression Update(LabelTarget target, Expression defaultValue)
        {
            if (Target.Equals(target) && DefaultValue == defaultValue)
            {
                return(this);
            }

            return(AstExpression.Label(_caseLabel, ParentScope, Visitor));
        }