Inheritance: IronRuby.Compiler.Ast.Node
示例#1
0
 public CaseExpression(Expression value, WhenClause/*!*/[] whenClauses, Statements elseStatements, SourceSpan location)
     : base(location)
 {
     _value = value;
     _whenClauses = whenClauses ?? WhenClause.EmptyArray;
     _elseStatements = elseStatements;
 }
示例#2
0
 internal protected virtual void Walk(WhenClause /*!*/ node)
 {
     if (Enter(node))
     {
         VisitList(node.Comparisons);
         VisitOptionalList(node.Statements);
     }
     Exit(node);
 }
示例#3
0
        internal protected virtual void Walk(WhenClause /*!*/ node)
        {
            if (Enter(node))
            {
                VisitOptionalList(node.Comparisons);

                if (node.ComparisonArray != null)
                {
                    node.ComparisonArray.Walk(this);
                }

                VisitOptionalList(node.Statements);
            }
            Exit(node);
        }
示例#4
0
 public virtual void Exit(WhenClause/*!*/ node) { }
示例#5
0
 public virtual bool Enter(WhenClause/*!*/ node) { return true; }
示例#6
0
 public virtual void Exit(WhenClause /*!*/ node)
 {
 }
示例#7
0
 public virtual bool Enter(WhenClause /*!*/ node)
 {
     return(true);
 }
示例#8
0
 internal CaseExpression(Expression value, WhenClause/*!*/[] whenClauses, ElseIfClause elseClause, SourceSpan location)
     : this(value, whenClauses, (elseClause != null) ? elseClause.Statements : null, location)
 {
 }