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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 10996062: Use static final empty Modifier instead of null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Missing uses fixed. Created 8 years, 3 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
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index 221a5e59ffe6496027adc12380ec3c88ffdce83d..f13b36b8233e5fe70b0a587e53be78d0e9c311af 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -124,7 +124,7 @@ class Unparser implements Visitor {
visitFunctionExpression(FunctionExpression node) {
// Check length to not print unnecessary whitespace.
- if (node.modifiers !== null && node.modifiers.nodes.length() > 0) {
+ if (node.modifiers.nodes.length() > 0) {
visit(node.modifiers);
sb.add(' ');
}

Powered by Google App Engine
This is Rietveld 408576698