private CopyForRewrite ( ) : |
||
Результат |
private ScopeStatement VisitScope(ScopeStatement scope) { var newScope = scope.CopyForRewrite(); ScopeStatement prevScope = _curScope; try { // rewrite the method body _curScope = newScope; newScope.Parent = prevScope; newScope.RewriteBody(this); } finally { _curScope = prevScope; } return(newScope); }
private ScopeStatement VisitScope(ScopeStatement scope) { var newScope = scope.CopyForRewrite(); ScopeStatement prevScope = _curScope; try { // rewrite the method body _curScope = newScope; newScope.Parent = prevScope; newScope.RewriteBody(this); } finally { _curScope = prevScope; } return newScope; }