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

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/library_builder.dart

Issue 2993283002: Use LibraryBuilder.target for imports/exports. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.library_builder; 5 library fasta.library_builder;
6 6
7 import '../combinator.dart' show Combinator; 7 import '../combinator.dart' show Combinator;
8 8
9 import '../problems.dart' show internalProblem; 9 import '../problems.dart' show internalProblem;
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 LibraryBuilder(Uri fileUri, this.scope, this.exportScope) 59 LibraryBuilder(Uri fileUri, this.scope, this.exportScope)
60 : fileUri = fileUri, 60 : fileUri = fileUri,
61 relativeFileUri = relativizeUri(fileUri), 61 relativeFileUri = relativizeUri(fileUri),
62 scopeBuilder = new ScopeBuilder(scope), 62 scopeBuilder = new ScopeBuilder(scope),
63 exportScopeBuilder = new ScopeBuilder(exportScope), 63 exportScopeBuilder = new ScopeBuilder(exportScope),
64 super(null, -1, fileUri); 64 super(null, -1, fileUri);
65 65
66 Loader get loader; 66 Loader get loader;
67 67
68 @override
69 R get target;
70
68 Uri get uri; 71 Uri get uri;
69 72
70 Builder addBuilder(String name, Builder builder, int charOffset); 73 Builder addBuilder(String name, Builder builder, int charOffset);
71 74
72 void addExporter( 75 void addExporter(
73 LibraryBuilder exporter, List<Combinator> combinators, int charOffset) { 76 LibraryBuilder exporter, List<Combinator> combinators, int charOffset) {
74 exporters.add(new Export(exporter, this, combinators, charOffset)); 77 exporters.add(new Export(exporter, this, combinators, charOffset));
75 } 78 }
76 79
77 /// See `Loader.addCompileTimeError` for an explanation of the 80 /// See `Loader.addCompileTimeError` for an explanation of the
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 templateInternalProblemNotFoundIn.withArguments( 196 templateInternalProblemNotFoundIn.withArguments(
194 name, relativeFileUri), 197 name, relativeFileUri),
195 -1, 198 -1,
196 null); 199 null);
197 } 200 }
198 201
199 Builder lookup(String name, int charOffset, Uri fileUri) { 202 Builder lookup(String name, int charOffset, Uri fileUri) {
200 return scope.lookup(name, charOffset, fileUri); 203 return scope.lookup(name, charOffset, fileUri);
201 } 204 }
202 } 205 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698