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

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart

Issue 2691653003: Compute bounds of type variables. (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.kernel_target; 5 library fasta.kernel_target;
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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 await loader.buildOutlines(); 250 await loader.buildOutlines();
251 loader.resolveParts(); 251 loader.resolveParts();
252 loader.computeLibraryScopes(); 252 loader.computeLibraryScopes();
253 loader.resolveTypes(); 253 loader.resolveTypes();
254 loader.buildProgram(); 254 loader.buildProgram();
255 loader.checkSemantics(); 255 loader.checkSemantics();
256 List<SourceClassBuilder> sourceClasses = collectAllSourceClasses(); 256 List<SourceClassBuilder> sourceClasses = collectAllSourceClasses();
257 installDefaultSupertypes(sourceClasses); 257 installDefaultSupertypes(sourceClasses);
258 installDefaultConstructors(sourceClasses); 258 installDefaultConstructors(sourceClasses);
259 loader.resolveConstructors(); 259 loader.resolveConstructors();
260 loader.finishTypeVariables(objectClassBuilder);
260 program = link(new List<Library>.from(loader.libraries)); 261 program = link(new List<Library>.from(loader.libraries));
261 if (uri == null) return program; 262 if (uri == null) return program;
262 return await writeLinkedProgram(uri, program, isFullProgram: false); 263 return await writeLinkedProgram(uri, program, isFullProgram: false);
263 } on InputError catch (e) { 264 } on InputError catch (e) {
264 return handleInputError(uri, e, isFullProgram: false); 265 return handleInputError(uri, e, isFullProgram: false);
265 } catch (e, s) { 266 } catch (e, s) {
266 return reportCrash(e, s, loader?.currentUriForCrashReporting); 267 return reportCrash(e, s, loader?.currentUriForCrashReporting);
267 } 268 }
268 } 269 }
269 270
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 superclass = superclass.superclass; 591 superclass = superclass.superclass;
591 } 592 }
592 for (Constructor constructor in superclass.constructors) { 593 for (Constructor constructor in superclass.constructors) {
593 if (constructor.name.name.isEmpty) { 594 if (constructor.name.name.isEmpty) {
594 return constructor.function.requiredParameterCount == 0 ? 595 return constructor.function.requiredParameterCount == 0 ?
595 constructor : null; 596 constructor : null;
596 } 597 }
597 } 598 }
598 return null; 599 return null;
599 } 600 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698