| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.serialization_model_test; | 5 library dart2js.serialization_model_test; |
| 6 |
| 6 import 'dart:async'; | 7 import 'dart:async'; |
| 7 import 'dart:io'; | 8 import 'dart:io'; |
| 8 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 9 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
| 10 import 'package:compiler/src/closure.dart'; | 11 import 'package:compiler/src/closure.dart'; |
| 11 import 'package:compiler/src/commandline_options.dart'; | 12 import 'package:compiler/src/commandline_options.dart'; |
| 12 import 'package:compiler/src/compiler.dart'; | 13 import 'package:compiler/src/compiler.dart'; |
| 13 import 'package:compiler/src/elements/elements.dart'; | 14 import 'package:compiler/src/elements/elements.dart'; |
| 14 import 'package:compiler/src/filenames.dart'; | 15 import 'package:compiler/src/filenames.dart'; |
| 15 import 'package:compiler/src/js_backend/js_backend.dart'; | 16 import 'package:compiler/src/js_backend/js_backend.dart'; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 return true; | 296 return true; |
| 296 } | 297 } |
| 297 | 298 |
| 298 String nodeToString(Node node) { | 299 String nodeToString(Node node) { |
| 299 String text = '$node'; | 300 String text = '$node'; |
| 300 if (text.length > 40) { | 301 if (text.length > 40) { |
| 301 return '(${node.runtimeType}) ${text.substring(0, 37)}...'; | 302 return '(${node.runtimeType}) ${text.substring(0, 37)}...'; |
| 302 } | 303 } |
| 303 return '(${node.runtimeType}) $text'; | 304 return '(${node.runtimeType}) $text'; |
| 304 } | 305 } |
| OLD | NEW |