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

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

Issue 2780543002: Handle complicated imports. (Closed)
Patch Set: Fix infinite loop. 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.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 '../errors.dart' show InputError, internalError, printUnexpected; 9 import '../errors.dart' show InputError, internalError, printUnexpected;
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void addNit(int charOffset, Object message, 79 void addNit(int charOffset, Object message,
80 {Uri fileUri, bool silent: false}) { 80 {Uri fileUri, bool silent: false}) {
81 fileUri ??= this.fileUri; 81 fileUri ??= this.fileUri;
82 if (!silent) { 82 if (!silent) {
83 nit(fileUri, charOffset, message); 83 nit(fileUri, charOffset, message);
84 } 84 }
85 } 85 }
86 86
87 bool addToExportScope(String name, Builder member); 87 bool addToExportScope(String name, Builder member);
88 88
89 void addToScope(String name, Builder member); 89 void addToScope(String name, Builder member, int charOffset, bool isImport);
90 90
91 Builder buildAmbiguousBuilder( 91 Builder buildAmbiguousBuilder(
92 String name, Builder builder, Builder other, int charOffset); 92 String name, Builder builder, Builder other, int charOffset,
93 {bool isExport: false, bool isImport: false});
93 94
94 int finishStaticInvocations() => 0; 95 int finishStaticInvocations() => 0;
95 96
96 int finishNativeMethods() => 0; 97 int finishNativeMethods() => 0;
97 98
98 /// Looks up [constructorName] in the class named [className]. It's an error 99 /// Looks up [constructorName] in the class named [className]. It's an error
99 /// if no such class is exported by this library, or if the class doesn't 100 /// if no such class is exported by this library, or if the class doesn't
100 /// have a matching constructor (or factory). 101 /// have a matching constructor (or factory).
101 /// 102 ///
102 /// If [constructorName] is null or the empty string, it's assumed to be an 103 /// If [constructorName] is null or the empty string, it's assumed to be an
(...skipping 21 matching lines...) Expand all
124 } 125 }
125 126
126 int finishTypeVariables(ClassBuilder object) => 0; 127 int finishTypeVariables(ClassBuilder object) => 0;
127 128
128 void becomeCoreLibrary(dynamicType, voidType) { 129 void becomeCoreLibrary(dynamicType, voidType) {
129 addBuilder("dynamic", 130 addBuilder("dynamic",
130 new DynamicTypeBuilder<T, dynamic>(dynamicType, this, -1), -1); 131 new DynamicTypeBuilder<T, dynamic>(dynamicType, this, -1), -1);
131 addBuilder("void", new VoidTypeBuilder<T, dynamic>(voidType, this, -1), -1); 132 addBuilder("void", new VoidTypeBuilder<T, dynamic>(voidType, this, -1), -1);
132 } 133 }
133 } 134 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/invalid_type_builder.dart ('k') | pkg/front_end/lib/src/fasta/builder/prefix_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698