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 | 4 |
5 library fasta.source_loader; | 5 library fasta.source_loader; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'dart:io' show FileSystemException; | 9 import 'dart:io' show FileSystemException; |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 }); | 193 }); |
194 ticker.logMs("Computed library scopes"); | 194 ticker.logMs("Computed library scopes"); |
195 // debugPrintExports(); | 195 // debugPrintExports(); |
196 } | 196 } |
197 | 197 |
198 void debugPrintExports() { | 198 void debugPrintExports() { |
199 // TODO(sigmund): should be `covarint SourceLibraryBuilder`. | 199 // TODO(sigmund): should be `covarint SourceLibraryBuilder`. |
200 builders.forEach((Uri uri, dynamic l) { | 200 builders.forEach((Uri uri, dynamic l) { |
201 SourceLibraryBuilder library = l; | 201 SourceLibraryBuilder library = l; |
202 Set<Builder> members = new Set<Builder>(); | 202 Set<Builder> members = new Set<Builder>(); |
203 library.members.forEach((String name, Builder member) { | 203 library.forEach((String name, Builder member) { |
204 while (member != null) { | 204 while (member != null) { |
205 members.add(member); | 205 members.add(member); |
206 member = member.next; | 206 member = member.next; |
207 } | 207 } |
208 }); | 208 }); |
209 List<String> exports = <String>[]; | 209 List<String> exports = <String>[]; |
210 library.exports.forEach((String name, Builder member) { | 210 library.exports.forEach((String name, Builder member) { |
211 while (member != null) { | 211 while (member != null) { |
212 if (!members.contains(member)) { | 212 if (!members.contains(member)) { |
213 exports.add(name); | 213 exports.add(name); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 void checkOverrides(List<SourceClassBuilder> sourceClasses) { | 362 void checkOverrides(List<SourceClassBuilder> sourceClasses) { |
363 assert(hierarchy != null); | 363 assert(hierarchy != null); |
364 for (SourceClassBuilder builder in sourceClasses) { | 364 for (SourceClassBuilder builder in sourceClasses) { |
365 builder.checkOverrides(hierarchy); | 365 builder.checkOverrides(hierarchy); |
366 } | 366 } |
367 ticker.logMs("Checked overrides"); | 367 ticker.logMs("Checked overrides"); |
368 } | 368 } |
369 | 369 |
370 List<Uri> getDependencies() => sourceBytes.keys.toList(); | 370 List<Uri> getDependencies() => sourceBytes.keys.toList(); |
371 } | 371 } |
OLD | NEW |