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

Unified Diff: lib/src/source_visitor.dart

Issue 826393005: Try to keep constructor calls together. Fix #119. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 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 | test/regression/119.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/source_visitor.dart
diff --git a/lib/src/source_visitor.dart b/lib/src/source_visitor.dart
index 88719b067b0fa8411ea414bf4300f5cc0ec54080..e0780ff342e09053dc5a1966cae3ddcd2934bd49 100644
--- a/lib/src/source_visitor.dart
+++ b/lib/src/source_visitor.dart
@@ -819,10 +819,12 @@ class SourceVisitor implements AstVisitor {
}
visitInstanceCreationExpression(InstanceCreationExpression node) {
+ _writer.startSpan();
token(node.keyword);
space();
visit(node.constructorName);
visit(node.argumentList);
+ _writer.endSpan();
}
visitIntegerLiteral(IntegerLiteral node) {
« no previous file with comments | « no previous file | test/regression/119.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698