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 dev_compiler.src.codegen.js_codegen; | 5 library dev_compiler.src.codegen.js_codegen; |
6 | 6 |
7 import 'dart:collection' show HashSet, HashMap, SplayTreeSet; | 7 import 'dart:collection' show HashSet, HashMap, SplayTreeSet; |
8 | 8 |
9 import 'package:analyzer/analyzer.dart' hide ConstantEvaluator; | 9 import 'package:analyzer/analyzer.dart' hide ConstantEvaluator; |
10 import 'package:analyzer/src/generated/ast.dart' hide ConstantEvaluator; | 10 import 'package:analyzer/src/generated/ast.dart' hide ConstantEvaluator; |
11 import 'package:analyzer/src/generated/constant.dart'; | 11 import 'package:analyzer/src/generated/constant.dart'; |
12 import 'package:analyzer/src/generated/element.dart'; | 12 import 'package:analyzer/src/generated/element.dart'; |
13 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; | 13 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; |
14 import 'package:analyzer/src/generated/scanner.dart' | 14 import 'package:analyzer/src/generated/scanner.dart' |
15 show StringToken, Token, TokenType; | 15 show StringToken, Token, TokenType; |
16 import 'package:analyzer/src/task/dart.dart' show PublicNamespaceBuilder; | 16 import 'package:analyzer/src/task/dart.dart' show PublicNamespaceBuilder; |
| 17 import 'package:analyzer/src/task/strong/rules.dart'; |
17 | 18 |
18 import 'ast_builder.dart' show AstBuilder; | 19 import 'ast_builder.dart' show AstBuilder; |
19 import 'reify_coercions.dart' show CoercionReifier, Tuple2; | 20 import 'reify_coercions.dart' show CoercionReifier, Tuple2; |
20 | 21 |
21 // TODO(jmesserly): import from its own package | 22 // TODO(jmesserly): import from its own package |
22 import '../js/js_ast.dart' as JS; | 23 import '../js/js_ast.dart' as JS; |
23 import '../js/js_ast.dart' show js; | 24 import '../js/js_ast.dart' show js; |
24 | 25 |
25 import '../closure/closure_annotator.dart' show ClosureAnnotator; | 26 import '../closure/closure_annotator.dart' show ClosureAnnotator; |
26 import '../compiler.dart' show AbstractCompiler; | 27 import '../compiler.dart' show AbstractCompiler; |
27 import '../checker/rules.dart'; | |
28 import '../info.dart'; | 28 import '../info.dart'; |
29 import '../options.dart' show CodegenOptions; | 29 import '../options.dart' show CodegenOptions; |
30 import '../utils.dart'; | 30 import '../utils.dart'; |
31 | 31 |
32 import 'code_generator.dart'; | 32 import 'code_generator.dart'; |
33 import 'js_field_storage.dart'; | 33 import 'js_field_storage.dart'; |
34 import 'js_names.dart' as JS; | 34 import 'js_names.dart' as JS; |
35 import 'js_metalet.dart' as JS; | 35 import 'js_metalet.dart' as JS; |
36 import 'js_module_item_order.dart'; | 36 import 'js_module_item_order.dart'; |
37 import 'js_printer.dart' show writeJsLibrary; | 37 import 'js_printer.dart' show writeJsLibrary; |
(...skipping 3276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3314 | 3314 |
3315 /// A special kind of element created by the compiler, signifying a temporary | 3315 /// A special kind of element created by the compiler, signifying a temporary |
3316 /// variable. These objects use instance equality, and should be shared | 3316 /// variable. These objects use instance equality, and should be shared |
3317 /// everywhere in the tree where they are treated as the same variable. | 3317 /// everywhere in the tree where they are treated as the same variable. |
3318 class TemporaryVariableElement extends LocalVariableElementImpl { | 3318 class TemporaryVariableElement extends LocalVariableElementImpl { |
3319 TemporaryVariableElement.forNode(Identifier name) : super.forNode(name); | 3319 TemporaryVariableElement.forNode(Identifier name) : super.forNode(name); |
3320 | 3320 |
3321 int get hashCode => identityHashCode(this); | 3321 int get hashCode => identityHashCode(this); |
3322 bool operator ==(Object other) => identical(this, other); | 3322 bool operator ==(Object other) => identical(this, other); |
3323 } | 3323 } |
OLD | NEW |