OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library kernel.analyzer.ast_from_analyzer; | 4 library kernel.analyzer.ast_from_analyzer; |
5 | 5 |
6 import 'package:kernel/ast.dart' as ast; | 6 import 'package:kernel/ast.dart' as ast; |
7 import 'package:kernel/frontend/accessors.dart'; | |
8 import 'package:kernel/frontend/super_initializers.dart'; | 7 import 'package:kernel/frontend/super_initializers.dart'; |
9 import 'package:kernel/log.dart'; | 8 import 'package:kernel/log.dart'; |
10 import 'package:kernel/type_algebra.dart'; | 9 import 'package:kernel/type_algebra.dart'; |
11 import 'package:kernel/transformations/flags.dart'; | 10 import 'package:kernel/transformations/flags.dart'; |
12 import 'package:analyzer/dart/ast/token.dart'; | 11 import 'package:analyzer/dart/ast/token.dart'; |
13 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
14 import 'package:analyzer/dart/element/type.dart'; | 13 import 'package:analyzer/dart/element/type.dart'; |
15 import 'package:analyzer/src/kernel/loader.dart'; | 14 import 'package:analyzer/src/kernel/loader.dart'; |
16 import 'package:analyzer/analyzer.dart'; | 15 import 'package:analyzer/analyzer.dart'; |
17 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 16 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
18 import 'package:analyzer/src/generated/parser.dart'; | 17 import 'package:analyzer/src/generated/parser.dart'; |
19 import 'package:analyzer/src/dart/element/member.dart'; | 18 import 'package:analyzer/src/dart/element/member.dart'; |
20 import 'package:analyzer/src/error/codes.dart'; | 19 import 'package:analyzer/src/error/codes.dart'; |
| 20 import 'package:front_end/src/fasta/kernel/frontend_accessors.dart'; |
21 | 21 |
22 /// Provides reference-level access to libraries, classes, and members. | 22 /// Provides reference-level access to libraries, classes, and members. |
23 /// | 23 /// |
24 /// "Reference level" objects are incomplete nodes that have no children but | 24 /// "Reference level" objects are incomplete nodes that have no children but |
25 /// can be used for linking until the loader promotes the node to a higher | 25 /// can be used for linking until the loader promotes the node to a higher |
26 /// loading level. | 26 /// loading level. |
27 /// | 27 /// |
28 /// The [ReferenceScope] is the most restrictive scope in a hierarchy of scopes | 28 /// The [ReferenceScope] is the most restrictive scope in a hierarchy of scopes |
29 /// that provide increasing amounts of contextual information. [TypeScope] is | 29 /// that provide increasing amounts of contextual information. [TypeScope] is |
30 /// used when type parameters might be in scope, and [MemberScope] is used when | 30 /// used when type parameters might be in scope, and [MemberScope] is used when |
(...skipping 3047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3078 if (list[i - 1].compareTo(item) == 0) { | 3078 if (list[i - 1].compareTo(item) == 0) { |
3079 ++deleted; | 3079 ++deleted; |
3080 } else if (deleted > 0) { | 3080 } else if (deleted > 0) { |
3081 list[i - deleted] = item; | 3081 list[i - deleted] = item; |
3082 } | 3082 } |
3083 } | 3083 } |
3084 if (deleted > 0) { | 3084 if (deleted > 0) { |
3085 list.length -= deleted; | 3085 list.length -= deleted; |
3086 } | 3086 } |
3087 } | 3087 } |
OLD | NEW |