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

Unified Diff: lib/text/ast_to_text.dart

Issue 2464843002: Fix some strong mode issues. (Closed)
Patch Set: Revert .analysis_options as there are still strong-mode issues Created 4 years, 1 month 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 | « lib/checks.dart ('k') | lib/transformations/mixin_full_resolution.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/text/ast_to_text.dart
diff --git a/lib/text/ast_to_text.dart b/lib/text/ast_to_text.dart
index 46850b765d50f4f7460b0f44a7103c7dae5e694f..84255dbde1639ce848ebb578d9b63d5d2a1fa9fc 100644
--- a/lib/text/ast_to_text.dart
+++ b/lib/text/ast_to_text.dart
@@ -679,7 +679,7 @@ class Printer extends Visitor<Null> {
writeExpression(node.initializer);
}
if ((node.enclosingClass == null &&
- node.enclosingLibrary.fileUri != node.fileUri) ||
+ node.enclosingLibrary.fileUri != node.fileUri) ||
(node.enclosingClass != null &&
node.enclosingClass.fileUri != node.fileUri)) {
writeWord("/* from ${node.fileUri} */");
@@ -1327,7 +1327,8 @@ class Printer extends Visitor<Null> {
writeSymbol('>');
}
writeSymbol('(');
- var allArgs = [node.positional, node.named].expand((x) => x);
+ var allArgs =
+ <List<TreeNode>>[node.positional, node.named].expand((x) => x);
writeList(allArgs, writeNode);
writeSymbol(')');
}
« no previous file with comments | « lib/checks.dart ('k') | lib/transformations/mixin_full_resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698