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

Side by Side Diff: pkg/analyzer/lib/src/kernel/ast_from_analyzer.dart

Issue 2756593004: Start unraveling circularities between analyzer and front_end/kernel. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/fasta/token_utils.dart ('k') | pkg/analyzer/lib/src/kernel/loader.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) 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 '../ast.dart' as ast; 6 import 'package:kernel/ast.dart' as ast;
7 import '../frontend/accessors.dart'; 7 import 'package:kernel/frontend/accessors.dart';
8 import '../frontend/super_initializers.dart'; 8 import 'package:kernel/frontend/super_initializers.dart';
9 import '../log.dart'; 9 import 'package:kernel/log.dart';
10 import '../type_algebra.dart'; 10 import 'package:kernel/type_algebra.dart';
11 import '../transformations/flags.dart'; 11 import 'package:kernel/transformations/flags.dart';
12 import 'analyzer.dart'; 12 import 'package:analyzer/dart/ast/token.dart';
13 import 'loader.dart'; 13 import 'package:analyzer/dart/element/element.dart';
14 import 'package:analyzer/dart/element/type.dart';
15 import 'package:analyzer/src/kernel/loader.dart';
14 import 'package:analyzer/analyzer.dart'; 16 import 'package:analyzer/analyzer.dart';
15 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; 17 import 'package:analyzer/dart/ast/standard_resolution_map.dart';
16 import 'package:analyzer/src/generated/parser.dart'; 18 import 'package:analyzer/src/generated/parser.dart';
17 import 'package:analyzer/src/dart/element/member.dart'; 19 import 'package:analyzer/src/dart/element/member.dart';
18 import 'package:analyzer/src/error/codes.dart'; 20 import 'package:analyzer/src/error/codes.dart';
19 21
20 /// Provides reference-level access to libraries, classes, and members. 22 /// Provides reference-level access to libraries, classes, and members.
21 /// 23 ///
22 /// "Reference level" objects are incomplete nodes that have no children but 24 /// "Reference level" objects are incomplete nodes that have no children but
23 /// 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
(...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3070 if (list[i - 1].compareTo(item) == 0) { 3072 if (list[i - 1].compareTo(item) == 0) {
3071 ++deleted; 3073 ++deleted;
3072 } else if (deleted > 0) { 3074 } else if (deleted > 0) {
3073 list[i - deleted] = item; 3075 list[i - deleted] = item;
3074 } 3076 }
3075 } 3077 }
3076 if (deleted > 0) { 3078 if (deleted > 0) {
3077 list.length -= deleted; 3079 list.length -= deleted;
3078 } 3080 }
3079 } 3081 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/token_utils.dart ('k') | pkg/analyzer/lib/src/kernel/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698