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

Unified Diff: src/ast/scopes.cc

Issue 2669153002: [scopes] With --print-scopes, print is_hidden() status too. (Closed)
Patch Set: oops Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index 1324f43b04d3b6fe14878d9e503c20c5a1ba702b..14aaa4738d8934765f441a5eda46847085b52413 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -1569,6 +1569,9 @@ void Scope::Print(int n) {
}
PrintF(" { // (%d, %d)\n", start_position(), end_position());
+ if (is_hidden()) {
+ Indent(n1, "// is hidden\n");
+ }
// Function name, if any (named function literals, only).
if (function != nullptr) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698