Index: pkg/compiler/lib/src/dump_info.dart |
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
index 307043a702df26464864e794de6421265348b8ba..4ba2073fe031dd097bc327f5e4533420d2be67cc 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -471,7 +471,11 @@ class DumpInfoTask extends CompilerTask { |
} |
} |
- int sizeOfNode(jsAst.Node node) => _nodeToSize[node] ?? 0; |
+ int sizeOfNode(jsAst.Node node) { |
+ // TODO(sigmund): switch back to null aware operators (issue #24136) |
+ var size = _nodeToSize[node]; |
+ return size == null ? 0 : size; |
+ } |
String codeOf(Element element) { |
List<jsAst.Node> code = _elementToNodes[element]; |