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

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

Issue 2788913002: Prepare for separate setter scope. (Closed)
Patch Set: Address comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart ('k') | pkg/front_end/lib/src/fasta/scope.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
index a6fdbf60c2c79dcac13e77a3c0a7d1dc3b39c75a..831dbf62cc2828b76137dbb9da2c5e43c9fab0b8 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
@@ -175,7 +175,7 @@ class KernelTarget extends TargetImplementation {
List<ClassBuilder> collectAllClasses() {
List<ClassBuilder> result = <ClassBuilder>[];
loader.builders.forEach((Uri uri, LibraryBuilder library) {
- library.members.forEach((String name, Builder member) {
+ library.forEach((String name, Builder member) {
if (member is KernelClassBuilder) {
result.add(member);
}
@@ -191,7 +191,7 @@ class KernelTarget extends TargetImplementation {
List<SourceClassBuilder> collectAllSourceClasses() {
List<SourceClassBuilder> result = <SourceClassBuilder>[];
loader.builders.forEach((Uri uri, LibraryBuilder library) {
- library.members.forEach((String name, Builder member) {
+ library.forEach((String name, Builder member) {
if (member is SourceClassBuilder) {
result.add(member);
}
@@ -230,7 +230,7 @@ class KernelTarget extends TargetImplementation {
await loader.buildOutlines();
loader.coreLibrary
.becomeCoreLibrary(const DynamicType(), const VoidType());
- dynamicType.bind(loader.coreLibrary.members["dynamic"]);
+ dynamicType.bind(loader.coreLibrary["dynamic"]);
loader.resolveParts();
loader.computeLibraryScopes();
loader.resolveTypes();
@@ -357,7 +357,7 @@ class KernelTarget extends TargetImplementation {
uriToSource[""] = new Source(<int>[0], const <int>[]);
Program program = new Program(libraries, uriToSource);
if (loader.first != null) {
- Builder builder = loader.first.members["main"];
+ Builder builder = loader.first.lookup("main", -1, null);
if (builder is KernelProcedureBuilder) {
program.mainMethod = builder.procedure;
}
@@ -390,7 +390,7 @@ class KernelTarget extends TargetImplementation {
void installDefaultSupertypes() {
Class objectClass = this.objectClass;
loader.builders.forEach((Uri uri, LibraryBuilder library) {
- library.members.forEach((String name, Builder builder) {
+ library.forEach((String name, Builder builder) {
if (builder is SourceClassBuilder) {
Class cls = builder.target;
if (cls != objectClass) {
@@ -415,9 +415,7 @@ class KernelTarget extends TargetImplementation {
ticker.logMs("Installed default constructors");
}
- KernelClassBuilder get objectClassBuilder {
- return loader.coreLibrary.exports["Object"];
- }
+ KernelClassBuilder get objectClassBuilder => loader.coreLibrary["Object"];
Class get objectClass => objectClassBuilder.cls;
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart ('k') | pkg/front_end/lib/src/fasta/scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698