Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Unified Diff: runtime/vm/scopes.h

Issue 22678002: Follow-up to capturing instantiator (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.h
===================================================================
--- runtime/vm/scopes.h (revision 25919)
+++ runtime/vm/scopes.h (working copy)
@@ -284,8 +284,9 @@
LocalScope* LookupSwitchScope();
// Looks up variable in this scope and mark as captured if applicable.
- // Finds the variable even if it is marked invisible.
- void CaptureVariable(const String& name);
+ // Finds the variable even if it is marked invisible. Returns true if
+ // the variable was found, false if it was not found.
+ bool CaptureVariable(const String& name);
// Look for unresolved forward references to labels in this scope.
// If there are any, propagate the forward reference to the next
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698