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

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

Issue 2691613002: Improve compile-time error handling. (Closed)
Patch Set: Update status and expectations for rasta tests. 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
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.import; 5 library fasta.import;
6 6
7 import 'builder/builder.dart' show 7 import 'builder/builder.dart' show
8 Builder, 8 Builder,
9 LibraryBuilder, 9 LibraryBuilder,
10 PrefixBuilder; 10 PrefixBuilder;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 imported.exports.forEach((String name, Builder member) { 49 imported.exports.forEach((String name, Builder member) {
50 if (combinators != null) { 50 if (combinators != null) {
51 for (Combinator combinator in combinators) { 51 for (Combinator combinator in combinators) {
52 if (combinator.isShow && !combinator.names.contains(name)) return; 52 if (combinator.isShow && !combinator.names.contains(name)) return;
53 if (combinator.isHide && combinator.names.contains(name)) return; 53 if (combinator.isHide && combinator.names.contains(name)) return;
54 } 54 }
55 } 55 }
56 add(name, member); 56 add(name, member);
57 }); 57 });
58 if (prefix != null) { 58 if (prefix != null) {
59 Builder existing = importer.addBuilder(prefix.name, prefix); 59 Builder existing = importer.addBuilder(prefix.name, prefix, charOffset);
60 if (existing == prefix) { 60 if (existing == prefix) {
61 importer.addToScope(prefix.name, prefix); 61 importer.addToScope(prefix.name, prefix);
62 } 62 }
63 } 63 }
64 } 64 }
65 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698