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

Unified Diff: src/ast/scopes.h

Issue 2353623002: Filter out synthetic variables from with scopes (Closed)
Patch Set: Fix whitespace Created 4 years, 3 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
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 9bc1013d4d70d24a2f74d25f7fd99675fd396b5f..68cc3a4aada346b8596becd80c4348c4c2c5ce38 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -415,6 +415,12 @@ class Scope: public ZoneObject {
is_lazily_parsed_ = is_lazily_parsed;
}
+ // Return true if this local was introduced by the compiler, and should not be
+ // exposed to the user in a debugger.
+ // Parallel to ScopeInfo::VariableIsSynthetic, an AstRawString version must
+ // exist so the predicate can be called on un-internalized strings.
+ static bool VariableIsSynthetic(const AstRawString* name);
+
protected:
explicit Scope(Zone* zone);

Powered by Google App Engine
This is Rietveld 408576698