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

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

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'package:async_helper/async_helper.dart'; 6 import 'package:async_helper/async_helper.dart';
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'package:compiler/implementation/elements/elements.dart'; 8 import 'package:compiler/src/elements/elements.dart';
9 import 'package:compiler/implementation/tree/tree.dart'; 9 import 'package:compiler/src/tree/tree.dart';
10 import 'package:compiler/implementation/util/util.dart'; 10 import 'package:compiler/src/util/util.dart';
11 import 'package:compiler/implementation/source_file.dart'; 11 import 'package:compiler/src/source_file.dart';
12 import 'mock_compiler.dart'; 12 import 'mock_compiler.dart';
13 import 'parser_helper.dart'; 13 import 'parser_helper.dart';
14 14
15 import 'package:compiler/implementation/elements/modelx.dart' 15 import 'package:compiler/src/elements/modelx.dart'
16 show ClassElementX, CompilationUnitElementX, ElementX, FunctionElementX; 16 show ClassElementX, CompilationUnitElementX, ElementX, FunctionElementX;
17 17
18 import 'package:compiler/implementation/dart2jslib.dart'; 18 import 'package:compiler/src/dart2jslib.dart';
19 19
20 import 'package:compiler/implementation/dart_types.dart'; 20 import 'package:compiler/src/dart_types.dart';
21 21
22 final MessageKind NOT_ASSIGNABLE = MessageKind.NOT_ASSIGNABLE; 22 final MessageKind NOT_ASSIGNABLE = MessageKind.NOT_ASSIGNABLE;
23 final MessageKind MEMBER_NOT_FOUND = MessageKind.MEMBER_NOT_FOUND; 23 final MessageKind MEMBER_NOT_FOUND = MessageKind.MEMBER_NOT_FOUND;
24 24
25 main() { 25 main() {
26 List tests = [testSimpleTypes, 26 List tests = [testSimpleTypes,
27 testReturn, 27 testReturn,
28 testFor, 28 testFor,
29 testWhile, 29 testWhile,
30 testTry, 30 testTry,
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 parser.parseStatement(tokens); 2115 parser.parseStatement(tokens);
2116 Node node = listener.popNode(); 2116 Node node = listener.popNode();
2117 TreeElements elements = compiler.resolveNodeStatement(node, element); 2117 TreeElements elements = compiler.resolveNodeStatement(node, element);
2118 TypeCheckerVisitor checker = new TypeCheckerVisitor( 2118 TypeCheckerVisitor checker = new TypeCheckerVisitor(
2119 compiler, elements, compiler.types); 2119 compiler, elements, compiler.types);
2120 compiler.clearMessages(); 2120 compiler.clearMessages();
2121 checker.analyze(node); 2121 checker.analyze(node);
2122 generateOutput(compiler, text); 2122 generateOutput(compiler, text);
2123 compareWarningKinds(text, expectedWarnings, compiler.warnings); 2123 compareWarningKinds(text, expectedWarnings, compiler.warnings);
2124 } 2124 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/subtype_test.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698