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); }
// Methods internal Scope(SqlNode source, SqlResolver.SqlScopedVisitor.Scope containing) { this.source = source; this.containing = containing; }