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

Side by Side Diff: pkg/front_end/lib/src/fasta/dill/dill_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.dill_library_builder; 5 library fasta.dill_library_builder;
6 6
7 import 'package:kernel/ast.dart' 7 import 'package:kernel/ast.dart'
8 show 8 show
9 Class, 9 Class,
10 ExpressionStatement, 10 ExpressionStatement,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (!name.startsWith("_")) { 94 if (!name.startsWith("_")) {
95 exports[name] = builder; 95 exports[name] = builder;
96 } 96 }
97 return builder; 97 return builder;
98 } 98 }
99 99
100 bool addToExportScope(String name, Builder member) { 100 bool addToExportScope(String name, Builder member) {
101 return internalError("Not implemented yet."); 101 return internalError("Not implemented yet.");
102 } 102 }
103 103
104 void addToScope(String name, Builder member) { 104 @override
105 void addToScope(String name, Builder member, int charOffset, bool isImport) {
105 internalError("Not implemented yet."); 106 internalError("Not implemented yet.");
106 } 107 }
107 108
108 KernelInvalidTypeBuilder buildAmbiguousBuilder( 109 @override
109 String name, Builder builder, Builder other, int charOffset) { 110 Builder buildAmbiguousBuilder(
111 String name, Builder builder, Builder other, int charOffset,
112 {bool isExport: false, bool isImport: false}) {
110 return new KernelInvalidTypeBuilder(name, charOffset, fileUri); 113 return new KernelInvalidTypeBuilder(name, charOffset, fileUri);
111 } 114 }
112 115
113 @override 116 @override
114 String get fullNameForErrors { 117 String get fullNameForErrors {
115 return library.name ?? "<library '${library.fileUri}'>"; 118 return library.name ?? "<library '${library.fileUri}'>";
116 } 119 }
117 } 120 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/prefix_builder.dart ('k') | pkg/front_end/lib/src/fasta/import.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698