OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 dart2js.analyze_helpers.test; | 5 library dart2js.analyze_helpers.test; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
10 import 'package:compiler/compiler_new.dart' show | 10 import 'package:compiler/compiler_new.dart' show |
11 Diagnostic; | 11 Diagnostic; |
12 import 'package:compiler/src/apiimpl.dart' show | 12 import 'package:compiler/src/apiimpl.dart' show |
13 Compiler; | 13 Compiler; |
14 import 'package:compiler/src/commandline_options.dart'; | 14 import 'package:compiler/src/commandline_options.dart'; |
15 import 'package:compiler/src/constants/expressions.dart' show | 15 import 'package:compiler/src/constants/expressions.dart' show |
16 ConstructedConstantExpression; | 16 ConstructedConstantExpression; |
17 import 'package:compiler/src/dart_types.dart' show | 17 import 'package:compiler/src/dart_types.dart' show |
18 InterfaceType; | 18 InterfaceType; |
19 import 'package:compiler/src/diagnostics/source_span.dart' show | 19 import 'package:compiler/src/diagnostics/source_span.dart' show |
20 SourceSpan; | 20 SourceSpan; |
21 import 'package:compiler/src/elements/elements.dart'; | 21 import 'package:compiler/src/elements/elements.dart'; |
22 import 'package:compiler/src/filenames.dart' show | 22 import 'package:compiler/src/filenames.dart' show |
23 nativeToUriPath; | 23 nativeToUriPath; |
24 import 'package:compiler/src/resolution/semantic_visitor.dart'; | 24 import 'package:compiler/src/resolution/semantic_visitor.dart'; |
25 import 'package:compiler/src/resolution/tree_elements.dart' show | 25 import 'package:compiler/src/resolution/tree_elements.dart' show |
26 TreeElements; | 26 TreeElements; |
27 import 'package:compiler/src/source_file_provider.dart' show | 27 import 'package:compiler/src/source_file_provider.dart' show |
28 FormattingDiagnosticHandler; | 28 FormattingDiagnosticHandler; |
29 import 'package:compiler/src/tree/tree.dart'; | 29 import 'package:compiler/src/tree/tree.dart'; |
30 import 'package:compiler/src/universe/universe.dart' show | 30 import 'package:compiler/src/universe/call_structure.dart' show |
31 CallStructure; | 31 CallStructure; |
32 import 'package:expect/expect.dart'; | 32 import 'package:expect/expect.dart'; |
33 | 33 |
34 import 'memory_compiler.dart'; | 34 import 'memory_compiler.dart'; |
35 | 35 |
36 main(List<String> arguments) { | 36 main(List<String> arguments) { |
37 bool verbose = arguments.contains('-v'); | 37 bool verbose = arguments.contains('-v'); |
38 | 38 |
39 List<String> options = <String>[ | 39 List<String> options = <String>[ |
40 Flags.analyzeOnly, | 40 Flags.analyzeOnly, |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 } | 227 } |
228 | 228 |
229 @override | 229 @override |
230 void visitConstConstructorInvoke( | 230 void visitConstConstructorInvoke( |
231 NewExpression node, | 231 NewExpression node, |
232 ConstructedConstantExpression constant, | 232 ConstructedConstantExpression constant, |
233 _) { | 233 _) { |
234 checkAccess(node, constant.target); | 234 checkAccess(node, constant.target); |
235 } | 235 } |
236 } | 236 } |
OLD | NEW |