상속: 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)
 {
 }