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

Unified Diff: dart/pkg/compiler/lib/src/use_unused_api.dart

Issue 728173003: Update pkg/compiler/lib/src/use_unused_api.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/use_unused_api.dart
diff --git a/dart/pkg/compiler/lib/src/use_unused_api.dart b/dart/pkg/compiler/lib/src/use_unused_api.dart
index 8102e0c9f6bd822a0ba138d5cbbae83bea49b5b8..fafe0cbd8ec7fea9dba6fab96a774717baf98373 100644
--- a/dart/pkg/compiler/lib/src/use_unused_api.dart
+++ b/dart/pkg/compiler/lib/src/use_unused_api.dart
@@ -31,6 +31,10 @@ import 'tree/tree.dart' as tree;
import 'universe/universe.dart' as universe;
import 'util/util.dart' as util;
+import 'scanner/scannerlib.dart' show
+ PartialClassElement,
+ PartialFunctionElement;
+
class ElementVisitor extends elements_visitor.ElementVisitor {
visitElement(e) {}
}
@@ -53,7 +57,7 @@ void main(List<String> arguments) {
useSsa(null);
useCodeBuffer(null);
usedByTests();
- useElements(null, null, null);
+ useElements(null, null, null, null, null);
useIr(null, null, null);
useCompiler(null);
useTypes();
@@ -119,6 +123,7 @@ void useNode(tree.Node node) {
void useUtil(util.Link link) {
link.reversePrependAll(link);
+ link.copyWithout(link);
util.longestCommonPrefixLength(null, null);
new util.Pair(null, null);
}
@@ -205,11 +210,18 @@ usedByTests() {
sourceFileProvider.readStringFromUri(null);
}
-useElements(elements.ClassElement e, elements.Name n, modelx.FieldElementX f) {
+useElements(
+ elements.ClassElement e,
+ elements.Name n,
+ modelx.FieldElementX f,
+ PartialClassElement pce,
+ PartialFunctionElement pfe) {
e.lookupClassMember(null);
e.lookupInterfaceMember(null);
n.isAccessibleFrom(null);
f.reuseElement();
+ pce.copyWithEnclosing(null);
+ pfe.copyWithEnclosing(null);
}
useIr(cps_ir_nodes_sexpr.SExpressionStringifier stringifier,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698