| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 compiler_helper; | 5 library compiler_helper; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 | 9 |
| 10 import 'package:compiler/compiler.dart' as api; | 10 import 'package:compiler/compiler.dart' as api; |
| 11 | 11 |
| 12 import 'package:compiler/src/elements/elements.dart' | 12 import 'package:compiler/src/elements/elements.dart' |
| 13 as lego; | 13 as lego; |
| 14 export 'package:compiler/src/elements/elements.dart'; | 14 export 'package:compiler/src/elements/elements.dart'; |
| 15 | 15 |
| 16 import 'package:compiler/src/js_backend/js_backend.dart' | 16 import 'package:compiler/src/js_backend/js_backend.dart' |
| 17 as js; | 17 as js; |
| 18 | 18 |
| 19 import 'package:compiler/src/common/codegen.dart'; | 19 import 'package:compiler/src/common/codegen.dart'; |
| 20 import 'package:compiler/src/common/resolution.dart'; | 20 import 'package:compiler/src/common/resolution.dart'; |
| 21 | 21 |
| 22 export 'package:compiler/src/diagnostics/messages.dart'; |
| 22 export 'package:compiler/src/diagnostics/source_span.dart'; | 23 export 'package:compiler/src/diagnostics/source_span.dart'; |
| 23 export 'package:compiler/src/diagnostics/spannable.dart'; | 24 export 'package:compiler/src/diagnostics/spannable.dart'; |
| 24 export 'package:compiler/src/messages.dart'; | |
| 25 | 25 |
| 26 import 'package:compiler/src/types/types.dart' | 26 import 'package:compiler/src/types/types.dart' |
| 27 as types; | 27 as types; |
| 28 export 'package:compiler/src/types/types.dart' | 28 export 'package:compiler/src/types/types.dart' |
| 29 show TypeMask; | 29 show TypeMask; |
| 30 | 30 |
| 31 import 'package:compiler/src/util/util.dart'; | 31 import 'package:compiler/src/util/util.dart'; |
| 32 export 'package:compiler/src/util/util.dart'; | 32 export 'package:compiler/src/util/util.dart'; |
| 33 | 33 |
| 34 import 'package:compiler/src/compiler.dart' | 34 import 'package:compiler/src/compiler.dart' |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)'); | 258 regexp = regexp.replaceAll(xRe, '(?:$anyIdentifier)'); |
| 259 final spaceRe = new RegExp('\\s+'); | 259 final spaceRe = new RegExp('\\s+'); |
| 260 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)'); | 260 regexp = regexp.replaceAll(spaceRe, '(?:\\s*)'); |
| 261 if (shouldMatch) { | 261 if (shouldMatch) { |
| 262 Expect.isTrue(new RegExp(regexp).hasMatch(generated)); | 262 Expect.isTrue(new RegExp(regexp).hasMatch(generated)); |
| 263 } else { | 263 } else { |
| 264 Expect.isFalse(new RegExp(regexp).hasMatch(generated)); | 264 Expect.isFalse(new RegExp(regexp).hasMatch(generated)); |
| 265 } | 265 } |
| 266 }); | 266 }); |
| 267 } | 267 } |
| OLD | NEW |