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

Unified Diff: pkg/analyzer/lib/src/services/formatter_impl.dart

Issue 382953002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/analyzer/lib/src/generated/testing/ast_factory.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/services/formatter_impl.dart
diff --git a/pkg/analyzer/lib/src/services/formatter_impl.dart b/pkg/analyzer/lib/src/services/formatter_impl.dart
index fa26c56a542153b6fd6e9657ea71b26092b1d6ef..4b0c7e95a2440ea3391a6f52c33c77158ebfad99 100644
--- a/pkg/analyzer/lib/src/services/formatter_impl.dart
+++ b/pkg/analyzer/lib/src/services/formatter_impl.dart
@@ -462,6 +462,15 @@ class SourceVisitor implements AstVisitor {
});
}
+ @override
+ visitAwaitExpression(AwaitExpression node) {
+ token(node.awaitKeyword);
+ space();
+ visit(node.expression);
+ // TODO(scheglov) a bug in the spec, there sould not be a ';'
+ token(node.semicolon);
+ }
+
visitBinaryExpression(BinaryExpression node) {
Token operator = node.operator;
TokenType operatorType = operator.type;
@@ -1430,6 +1439,15 @@ class SourceVisitor implements AstVisitor {
visitCommaSeparatedNodes(node.mixinTypes);
}
+ @override
+ visitYieldStatement(YieldStatement node) {
+ token(node.yieldKeyword);
+ token(node.star);
+ space();
+ visit(node.expression);
+ token(node.semicolon);
+ }
+
/// Safely visit the given [node].
visit(AstNode node) {
if (node != null) {
@@ -1830,5 +1848,4 @@ class SourceVisitor implements AstVisitor {
}
String toString() => writer.toString();
-
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/testing/ast_factory.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698