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

Side by Side Diff: pkg/front_end/lib/src/dependency_grapher_impl.dart

Issue 2884783002: Enhance DirectiveListener to collect import/exports with combinators. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 6
7 import 'package:front_end/dependency_grapher.dart'; 7 import 'package:front_end/dependency_grapher.dart';
8 import 'package:front_end/src/async_dependency_walker.dart'; 8 import 'package:front_end/src/async_dependency_walker.dart';
9 import 'package:front_end/src/base/processed_options.dart'; 9 import 'package:front_end/src/base/processed_options.dart';
10 import 'package:front_end/src/fasta/parser.dart'; 10 import 'package:front_end/src/fasta/parser.dart';
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 118 }
119 } 119 }
120 120
121 for (var part in listener.parts) { 121 for (var part in listener.parts) {
122 // TODO(paulberry): when we support SDK libraries, we'll need more 122 // TODO(paulberry): when we support SDK libraries, we'll need more
123 // complex logic here to find SDK parts correctly. 123 // complex logic here to find SDK parts correctly.
124 library.parts.add(uri.resolve(part)); 124 library.parts.add(uri.resolve(part));
125 } 125 }
126 126
127 for (var dep in listener.imports) { 127 for (var dep in listener.imports) {
128 handleDependency(uri.resolve(dep)); 128 handleDependency(uri.resolve(dep.uri));
129 } 129 }
130 130
131 for (var dep in listener.exports) { 131 for (var dep in listener.exports) {
132 handleDependency(uri.resolve(dep)); 132 handleDependency(uri.resolve(dep.uri));
133 } 133 }
134 134
135 if (!coreUriFound) { 135 if (!coreUriFound) {
136 handleDependency(dartCoreUri); 136 handleDependency(dartCoreUri);
137 } 137 }
138 return dependencies; 138 return dependencies;
139 } 139 }
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698