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

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

Issue 2991753002: Add export dependencies to Kernel libraries and use them to resynthesize ExportElement(s) in Analyz… (Closed)
Patch Set: Extract exportedLibrary. 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
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.prefix_builder; 5 library fasta.prefix_builder;
6 6
7 import 'builder.dart' show Builder, LibraryBuilder, Scope; 7 import 'builder.dart' show Builder, LibraryBuilder, Scope;
8 8
9 class PrefixBuilder extends Builder { 9 class PrefixBuilder extends Builder {
10 final String name; 10 final String name;
11 11
12 final Scope exports = new Scope.top(); 12 final Scope exportScope = new Scope.top();
13 13
14 final LibraryBuilder parent; 14 final LibraryBuilder parent;
15 15
16 final bool deferred; 16 final bool deferred;
17 17
18 @override 18 @override
19 final int charOffset; 19 final int charOffset;
20 20
21 PrefixBuilder(this.name, this.deferred, LibraryBuilder parent, int charOffset) 21 PrefixBuilder(this.name, this.deferred, LibraryBuilder parent, int charOffset)
22 : parent = parent, 22 : parent = parent,
23 charOffset = charOffset, 23 charOffset = charOffset,
24 super(parent, charOffset, parent.fileUri); 24 super(parent, charOffset, parent.fileUri);
25 25
26 Builder lookup(String name, int charOffset, Uri fileUri) { 26 Builder lookup(String name, int charOffset, Uri fileUri) {
27 return exports.lookup(name, charOffset, fileUri); 27 return exportScope.lookup(name, charOffset, fileUri);
28 } 28 }
29 29
30 @override 30 @override
31 String get fullNameForErrors => name; 31 String get fullNameForErrors => name;
32 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698