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

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

Issue 2803833003: Small steps towards deferred loading. (Closed)
Patch Set: Tweak status file. Some of the compile-time errors result in passing tests. Created 3 years, 8 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_library_builder; 5 library fasta.source_library_builder;
6 6
7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind; 7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind;
8 8
9 import '../combinator.dart' show Combinator; 9 import '../combinator.dart' show Combinator;
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 void addImport( 124 void addImport(
125 List<MetadataBuilder> metadata, 125 List<MetadataBuilder> metadata,
126 String uri, 126 String uri,
127 Unhandled conditionalUris, 127 Unhandled conditionalUris,
128 String prefix, 128 String prefix,
129 List<Combinator> combinators, 129 List<Combinator> combinators,
130 bool deferred, 130 bool deferred,
131 int charOffset, 131 int charOffset,
132 int prefixCharOffset) { 132 int prefixCharOffset) {
133 imports.add(new Import(this, loader.read(resolve(uri)), prefix, combinators, 133 imports.add(new Import(this, loader.read(resolve(uri)), deferred, prefix,
134 charOffset, prefixCharOffset)); 134 combinators, charOffset, prefixCharOffset));
135 } 135 }
136 136
137 void addPart(List<MetadataBuilder> metadata, String path) { 137 void addPart(List<MetadataBuilder> metadata, String path) {
138 Uri resolvedUri; 138 Uri resolvedUri;
139 Uri newFileUri; 139 Uri newFileUri;
140 if (uri.scheme == "dart") { 140 if (uri.scheme == "dart") {
141 resolvedUri = new Uri(scheme: "dart", path: "${uri.path}/$path"); 141 resolvedUri = new Uri(scheme: "dart", path: "${uri.path}/$path");
142 newFileUri = fileUri.resolve(path); 142 newFileUri = fileUri.resolve(path);
143 } else { 143 } else {
144 resolvedUri = uri.resolve(path); 144 resolvedUri = uri.resolve(path);
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 /// synthesize type variables on the factory matching the class'. 556 /// synthesize type variables on the factory matching the class'.
557 void addFactoryDeclaration( 557 void addFactoryDeclaration(
558 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { 558 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) {
559 factoryDeclarations[procedure] = factoryDeclaration; 559 factoryDeclarations[procedure] = factoryDeclaration;
560 } 560 }
561 561
562 Scope toScope(Scope parent) { 562 Scope toScope(Scope parent) {
563 return new Scope(members, setters, parent, isModifiable: false); 563 return new Scope(members, setters, parent, isModifiable: false);
564 } 564 }
565 } 565 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart ('k') | runtime/observatory/tests/service/service_kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698