| 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 mock_compiler; | 5 library mock_compiler; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 | 10 |
| 11 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; | 11 import 'package:compiler/compiler.dart' as api; |
| 12 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t'; | 12 import 'package:compiler/implementation/elements/elements.dart'; |
| 13 import '../../../sdk/lib/_internal/compiler/implementation/resolution/resolution
.dart'; | 13 import 'package:compiler/implementation/resolution/resolution.dart'; |
| 14 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; | 14 import 'package:compiler/implementation/source_file.dart'; |
| 15 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; | 15 import 'package:compiler/implementation/tree/tree.dart'; |
| 16 import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart'; | 16 import 'package:compiler/implementation/util/util.dart'; |
| 17 import 'parser_helper.dart'; | 17 import 'parser_helper.dart'; |
| 18 | 18 |
| 19 import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart' | 19 import 'package:compiler/implementation/elements/modelx.dart' |
| 20 show ElementX, | 20 show ElementX, |
| 21 LibraryElementX, | 21 LibraryElementX, |
| 22 ErroneousElementX, | 22 ErroneousElementX, |
| 23 FunctionElementX; | 23 FunctionElementX; |
| 24 | 24 |
| 25 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' | 25 import 'package:compiler/implementation/dart2jslib.dart' |
| 26 hide TreeElementMapping; | 26 hide TreeElementMapping; |
| 27 | 27 |
| 28 import '../../../sdk/lib/_internal/compiler/implementation/deferred_load.dart' | 28 import 'package:compiler/implementation/deferred_load.dart' |
| 29 show DeferredLoadTask, | 29 show DeferredLoadTask, |
| 30 OutputUnit; | 30 OutputUnit; |
| 31 | 31 |
| 32 class WarningMessage { | 32 class WarningMessage { |
| 33 Spannable node; | 33 Spannable node; |
| 34 Message message; | 34 Message message; |
| 35 WarningMessage(this.node, this.message); | 35 WarningMessage(this.node, this.message); |
| 36 | 36 |
| 37 toString() => message.toString(); | 37 toString() => message.toString(); |
| 38 } | 38 } |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 | 594 |
| 595 class MockElement extends FunctionElementX { | 595 class MockElement extends FunctionElementX { |
| 596 MockElement(Element enclosingElement) | 596 MockElement(Element enclosingElement) |
| 597 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, | 597 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, |
| 598 enclosingElement, false); | 598 enclosingElement, false); |
| 599 | 599 |
| 600 get node => null; | 600 get node => null; |
| 601 | 601 |
| 602 parseNode(_) => null; | 602 parseNode(_) => null; |
| 603 } | 603 } |
| OLD | NEW |