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

Unified Diff: runtime/vm/ast_printer.h

Issue 510033002: Print function scopes with indents. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add newline before first parameter Created 6 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 | « no previous file | runtime/vm/ast_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.h
diff --git a/runtime/vm/ast_printer.h b/runtime/vm/ast_printer.h
index 8d5d31f1f90a45e1668edde22fdea12deaa7a44d..6823723045a5af596d099bebe160a7e5854890ae 100644
--- a/runtime/vm/ast_printer.h
+++ b/runtime/vm/ast_printer.h
@@ -29,9 +29,14 @@ class AstPrinter : public AstNodeVisitor {
AstPrinter();
~AstPrinter();
+ static const int kScopeIndent = 2;
+
static void PrintLocalScopeVariable(const LocalScope* scope,
- LocalVariable* var);
- static void PrintLocalScope(const LocalScope* scope, int variable_index);
+ LocalVariable* var,
+ int indent = 0);
+ static void PrintLocalScope(const LocalScope* scope,
+ int variable_index,
+ int indent = 0);
void VisitGenericAstNode(AstNode* node);
void VisitGenericLocalNode(AstNode* node, const LocalVariable& local);
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698