Index: runtime/vm/scopes.h |
diff --git a/runtime/vm/scopes.h b/runtime/vm/scopes.h |
index 6cb2030a4e260da3e89c8975dbd61590238fc8b3..3e38932d0155a5b841c54c2d72993bdf77ac2f5d 100644 |
--- a/runtime/vm/scopes.h |
+++ b/runtime/vm/scopes.h |
@@ -318,6 +318,11 @@ class LocalScope : public ZoneAllocated { |
// from this scope and belonging to outer scopes. |
RawContextScope* PreserveOuterScope(int current_context_level) const; |
+ |
+ // Recursively traverses all siblings and children and marks all variables as |
+ // captured. |
+ void RecursivelyCaptureAllVariables(); |
+ |
// Creates a LocalScope representing the outer scope of a local function to be |
// compiled. This outer scope contains the variables captured by the function |
// as specified by the given ContextScope, which was created during the |