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

Unified Diff: pkg/kernel/lib/kernel.dart

Issue 2610133002: Non-format-changing kernel offset changes (Closed)
Patch Set: Changed offset variable introduced in various methods in accessors.dart to a named parameter with d… 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 | « pkg/kernel/lib/frontend/accessors.dart ('k') | pkg/kernel/lib/text/ast_to_text.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/kernel.dart
diff --git a/pkg/kernel/lib/kernel.dart b/pkg/kernel/lib/kernel.dart
index 7675c9c6adefc2f248a085ffe675bb907f39604c..1d67fb337f157e00d21f2ffa1806e3dda57ceae8 100644
--- a/pkg/kernel/lib/kernel.dart
+++ b/pkg/kernel/lib/kernel.dart
@@ -51,9 +51,10 @@ void writeLibraryToText(Library library, {String path}) {
}
void writeProgramToText(Program program,
- {String path, bool showExternal: false}) {
+ {String path, bool showExternal: false, bool showOffsets: false}) {
StringBuffer buffer = new StringBuffer();
- new Printer(buffer, showExternal: showExternal).writeProgramFile(program);
+ new Printer(buffer, showExternal: showExternal, showOffsets: showOffsets)
+ .writeProgramFile(program);
if (path == null) {
print(buffer);
} else {
« no previous file with comments | « pkg/kernel/lib/frontend/accessors.dart ('k') | pkg/kernel/lib/text/ast_to_text.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698