예제 #1
0
 private SqlColumnRef BubbleUp(SqlColumnRef cref)
 {
     for (SqlResolver.SqlScopedVisitor.Scope scope = base.CurrentScope;
          scope != null;
          scope = scope.ContainingScope)
     {
         if (scope.Source != null)
         {
             SqlColumn col = this.bubbler.BubbleUp(cref.Column, scope.Source);
             if (col != null)
             {
                 if (col != cref.Column)
                 {
                     return(new SqlColumnRef(col));
                 }
                 return(cref);
             }
         }
     }
     return(null);
 }
예제 #2
0
 // Methods
 internal Scope(SqlNode source, SqlResolver.SqlScopedVisitor.Scope containing)
 {
     this.source     = source;
     this.containing = containing;
 }