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

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

Issue 2669363004: Set fileUri when creating library builders. (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
« 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 7 import '../combinator.dart' show
8 Combinator; 8 Combinator;
9 9
10 import '../errors.dart' show 10 import '../errors.dart' show
(...skipping 17 matching lines...) Expand all
28 final List<Export> exporters = <Export>[]; 28 final List<Export> exporters = <Export>[];
29 29
30 final List<InputError> compileTimeErrors = <InputError>[]; 30 final List<InputError> compileTimeErrors = <InputError>[];
31 31
32 LibraryBuilder partOfLibrary; 32 LibraryBuilder partOfLibrary;
33 33
34 Loader get loader; 34 Loader get loader;
35 35
36 Uri get uri; 36 Uri get uri;
37 37
38 Uri get fileUri;
39
38 Map<String, Builder> get members; 40 Map<String, Builder> get members;
39 41
40 // TODO(ahe): Move this to SourceLibraryBuilder. 42 // TODO(ahe): Move this to SourceLibraryBuilder.
41 Scope get scope; 43 Scope get scope;
42 44
43 Map<String, Builder> get exports; 45 Map<String, Builder> get exports;
44 46
45 Builder addBuilder(String name, Builder builder); 47 Builder addBuilder(String name, Builder builder);
46 48
47 void addExporter(LibraryBuilder exporter, List<Combinator> combinators) { 49 void addExporter(LibraryBuilder exporter, List<Combinator> combinators) {
48 exporters.add(new Export(exporter, this, combinators)); 50 exporters.add(new Export(exporter, this, combinators));
49 } 51 }
50 52
51 void addCompileTimeError(int charOffset, Object message) { 53 void addCompileTimeError(int charOffset, Object message) {
52 InputError error = new InputError(uri, charOffset, message); 54 InputError error = new InputError(uri, charOffset, message);
53 compileTimeErrors.add(error); 55 compileTimeErrors.add(error);
54 print(error.format()); 56 print(error.format());
55 } 57 }
56 58
57 bool addToExportScope(String name, Builder member); 59 bool addToExportScope(String name, Builder member);
58 60
59 void addToScope(String name, Builder member); 61 void addToScope(String name, Builder member);
60 62
61 InvalidTypeBuilder buildAmbiguousBuilder( 63 InvalidTypeBuilder buildAmbiguousBuilder(
62 String name, Builder builder, Builder other); 64 String name, Builder builder, Builder other);
63 65
64 int finishStaticInvocations() => 0; 66 int finishStaticInvocations() => 0;
65 } 67 }
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