| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |