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