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

Side by Side Diff: pkg/front_end/lib/src/fasta/source/source_loader.dart

Issue 2675603002: Reduce strong mode errors and warnings (Closed)
Patch Set: Created 3 years, 10 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) 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 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'dart:io' show 10 import 'dart:io' show
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 builders.forEach((Uri uri, LibraryBuilder library) { 195 builders.forEach((Uri uri, LibraryBuilder library) {
196 if (library is SourceLibraryBuilder) { 196 if (library is SourceLibraryBuilder) {
197 library.addImportsToScope(); 197 library.addImportsToScope();
198 } 198 }
199 }); 199 });
200 ticker.logMs("Computed library scopes"); 200 ticker.logMs("Computed library scopes");
201 // debugPrintExports(); 201 // debugPrintExports();
202 } 202 }
203 203
204 void debugPrintExports() { 204 void debugPrintExports() {
205 builders.forEach((Uri uri, SourceLibraryBuilder library) { 205 builders.forEach((Uri uri, LibraryBuilder lib) {
206 SourceLibraryBuilder library = lib;
206 Set<Builder> members = new Set<Builder>(); 207 Set<Builder> members = new Set<Builder>();
207 library.members.forEach((String name, Builder member) { 208 library.members.forEach((String name, Builder member) {
208 while (member != null) { 209 while (member != null) {
209 members.add(member); 210 members.add(member);
210 member = member.next; 211 member = member.next;
211 } 212 }
212 }); 213 });
213 List<String> exports = <String>[]; 214 List<String> exports = <String>[];
214 library.exports.forEach((String name, Builder member) { 215 library.exports.forEach((String name, Builder member) {
215 while (member != null) { 216 while (member != null) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 ticker.logMs("Built analyzer element model."); 352 ticker.logMs("Built analyzer element model.");
352 } 353 }
353 354
354 void computeHierarchy(Program program) { 355 void computeHierarchy(Program program) {
355 hierarchy = new ClassHierarchy(program); 356 hierarchy = new ClassHierarchy(program);
356 ticker.logMs("Computed class hierarchy"); 357 ticker.logMs("Computed class hierarchy");
357 coreTypes = new CoreTypes(program); 358 coreTypes = new CoreTypes(program);
358 ticker.logMs("Computed core types"); 359 ticker.logMs("Computed core types");
359 } 360 }
360 } 361 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698