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

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
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 'package:compiler/compiler.dart' as api; 11 import 'package:compiler/compiler.dart' as api;
12 import 'package:compiler/src/constants/expressions.dart'; 12 import 'package:compiler/src/constants/expressions.dart';
13 import 'package:compiler/src/diagnostics/source_span.dart';
14 import 'package:compiler/src/diagnostics/spannable.dart';
13 import 'package:compiler/src/elements/elements.dart'; 15 import 'package:compiler/src/elements/elements.dart';
14 import 'package:compiler/src/js_backend/js_backend.dart' 16 import 'package:compiler/src/js_backend/js_backend.dart'
15 show JavaScriptBackend; 17 show JavaScriptBackend;
16 import 'package:compiler/src/messages.dart'; 18 import 'package:compiler/src/messages.dart';
17 import 'package:compiler/src/io/source_file.dart'; 19 import 'package:compiler/src/io/source_file.dart';
18 import 'package:compiler/src/resolution/resolution.dart'; 20 import 'package:compiler/src/resolution/resolution.dart';
19 import 'package:compiler/src/script.dart'; 21 import 'package:compiler/src/script.dart';
20 import 'package:compiler/src/tree/tree.dart'; 22 import 'package:compiler/src/tree/tree.dart';
21 import 'package:compiler/src/old_to_new_api.dart'; 23 import 'package:compiler/src/old_to_new_api.dart';
22 import 'package:compiler/src/util/util.dart';
23 import 'parser_helper.dart'; 24 import 'parser_helper.dart';
24 25
25 import 'package:compiler/src/elements/modelx.dart' 26 import 'package:compiler/src/elements/modelx.dart'
26 show ElementX, 27 show ElementX,
27 LibraryElementX, 28 LibraryElementX,
28 ErroneousElementX, 29 ErroneousElementX,
29 FunctionElementX; 30 FunctionElementX;
30 31
31 import 'package:compiler/src/dart2jslib.dart' 32 import 'package:compiler/src/compiler.dart';
32 hide TreeElementMapping;
33 33
34 import 'package:compiler/src/deferred_load.dart' 34 import 'package:compiler/src/deferred_load.dart'
35 show DeferredLoadTask, 35 show DeferredLoadTask,
36 OutputUnit; 36 OutputUnit;
37 37
38 import 'mock_libraries.dart'; 38 import 'mock_libraries.dart';
39 39
40 class WarningMessage { 40 class WarningMessage {
41 Spannable node; 41 Spannable node;
42 Message message; 42 Message message;
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 MockElement(Element enclosingElement) 404 MockElement(Element enclosingElement)
405 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, 405 : super('', ElementKind.FUNCTION, Modifiers.EMPTY,
406 enclosingElement); 406 enclosingElement);
407 407
408 get node => null; 408 get node => null;
409 409
410 parseNode(_) => null; 410 parseNode(_) => null;
411 411
412 bool get hasNode => false; 412 bool get hasNode => false;
413 } 413 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirrors/mirrors_reader_test.dart ('k') | tests/compiler/dart2js/parser_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698