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

Unified Diff: pkg/kernel/lib/text/ast_to_text.dart

Issue 3004973002: Revert "Store actual Reference(s) for additional exports." (Closed)
Patch Set: Update status file. Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/kernel/lib/import_table.dart ('k') | runtime/vm/kernel_binary_flowgraph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/text/ast_to_text.dart
diff --git a/pkg/kernel/lib/text/ast_to_text.dart b/pkg/kernel/lib/text/ast_to_text.dart
index 1c5b71b4a885157c058dee83823e5ec3c403f5fd..12d012a1e07dd49b5862c54c99ac148c4f049dbd 100644
--- a/pkg/kernel/lib/text/ast_to_text.dart
+++ b/pkg/kernel/lib/text/ast_to_text.dart
@@ -283,35 +283,7 @@ class Printer extends Visitor<Null> {
endLine('import "$importPath" as $prefix;');
}
}
-
// TODO(scheglov): Do we want to print dependencies? dartbug.com/30224
- if (library.additionalExports.isNotEmpty) {
- write('additionalExports = (');
- for (var reference in library.additionalExports) {
- var node = reference.node;
- if (node is Class) {
- Library nodeLibrary = node.enclosingLibrary;
- String prefix = syntheticNames.nameLibraryPrefix(nodeLibrary);
- write(prefix + '::' + node.name);
- } else if (node is Field) {
- Library nodeLibrary = node.enclosingLibrary;
- String prefix = syntheticNames.nameLibraryPrefix(nodeLibrary);
- write(prefix + '::' + node.name.name);
- } else if (node is Procedure) {
- Library nodeLibrary = node.enclosingLibrary;
- String prefix = syntheticNames.nameLibraryPrefix(nodeLibrary);
- write(prefix + '::' + node.name.name);
- } else if (node is Typedef) {
- Library nodeLibrary = node.enclosingLibrary;
- String prefix = syntheticNames.nameLibraryPrefix(nodeLibrary);
- write(prefix + '::' + node.name);
- } else {
- throw new UnimplementedError('${node.runtimeType}');
- }
- }
- endLine(')');
- }
-
endLine();
var inner = new Printer._inner(this, imports);
library.typedefs.forEach(inner.writeNode);
« no previous file with comments | « pkg/kernel/lib/import_table.dart ('k') | runtime/vm/kernel_binary_flowgraph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698