module SyntaxTree::WithScope
def with_scope(parent_scope = nil)
def with_scope(parent_scope = nil) previous_scope = @current_scope @current_scope = Scope.new(next_scope_id, parent_scope) yield ensure @current_scope = previous_scope end
def with_scope(parent_scope = nil) previous_scope = @current_scope @current_scope = Scope.new(next_scope_id, parent_scope) yield ensure @current_scope = previous_scope end