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

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

Issue 12082071: Import dart_type in tests, too. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:uri'; 8 import 'dart:uri';
9 9
10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
11 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t'; 11 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t';
12 import '../../../sdk/lib/_internal/compiler/implementation/resolution/resolution .dart'; 12 import '../../../sdk/lib/_internal/compiler/implementation/resolution/resolution .dart';
13 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; 13 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart';
14 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; 14 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart';
15 import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart'; 15 import '../../../sdk/lib/_internal/compiler/implementation/util/util.dart';
16 import 'parser_helper.dart'; 16 import 'parser_helper.dart';
17 17
18 import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart' 18 import '../../../sdk/lib/_internal/compiler/implementation/elements/modelx.dart'
19 show ElementX, 19 show ElementX,
20 LibraryElementX, 20 LibraryElementX,
21 ErroneousElementX; 21 ErroneousElementX;
22 22
23 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 23 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
24 hide TreeElementMapping; 24 hide TreeElementMapping;
25 25
26 import '../../../sdk/lib/_internal/compiler/implementation/dart_types.dart';
27
26 class WarningMessage { 28 class WarningMessage {
27 Node node; 29 Node node;
28 Message message; 30 Message message;
29 WarningMessage(this.node, this.message); 31 WarningMessage(this.node, this.message);
30 32
31 toString() => message.toString(); 33 toString() => message.toString();
32 } 34 }
33 35
34 const String DEFAULT_HELPERLIB = r''' 36 const String DEFAULT_HELPERLIB = r'''
35 $throw(x) { return x; } 37 $throw(x) { return x; }
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 operator []=(Node node, Element element) { 331 operator []=(Node node, Element element) {
330 map[node] = element; 332 map[node] = element;
331 } 333 }
332 334
333 operator [](Node node) => map[node]; 335 operator [](Node node) => map[node];
334 336
335 void remove(Node node) { 337 void remove(Node node) {
336 map.remove(node); 338 map.remove(node);
337 } 339 }
338 } 340 }
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698