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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 17825002: Remove support for 'argument definitions test' from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove SentinelConstant. Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart_backend; 5 part of dart_backend;
6 6
7 class LocalPlaceholder { 7 class LocalPlaceholder {
8 final String identifier; 8 final String identifier;
9 final Set<Node> nodes; 9 final Set<Node> nodes;
10 LocalPlaceholder(this.identifier) : nodes = new Set<Node>(); 10 LocalPlaceholder(this.identifier) : nodes = new Set<Node>();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 class SendVisitor extends ResolvedVisitor { 44 class SendVisitor extends ResolvedVisitor {
45 final PlaceholderCollector collector; 45 final PlaceholderCollector collector;
46 46
47 get compiler => collector.compiler; 47 get compiler => collector.compiler;
48 48
49 SendVisitor(this.collector, TreeElements elements) : super(elements); 49 SendVisitor(this.collector, TreeElements elements) : super(elements);
50 50
51 visitOperatorSend(Send node) { 51 visitOperatorSend(Send node) {
52 if (node.isParameterCheck) {
53 final element = elements[node.receiver];
54 if (element != null) {
55 collector.tryMakeLocalPlaceholder(element, node.receiver);
56 }
57 }
58 } 52 }
59 53
60 visitForeignSend(Send node) {} 54 visitForeignSend(Send node) {}
61 55
62 visitSuperSend(Send node) { 56 visitSuperSend(Send node) {
63 Element element = elements[node]; 57 Element element = elements[node];
64 if (element != null && element.isConstructor()) { 58 if (element != null && element.isConstructor()) {
65 collector.makeRedirectingConstructorPlaceholder(node.selector, element); 59 collector.makeRedirectingConstructorPlaceholder(node.selector, element);
66 } else { 60 } else {
67 collector.tryMakeMemberPlaceholder(node.selector); 61 collector.tryMakeMemberPlaceholder(node.selector);
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 615
622 visitBlock(Block node) { 616 visitBlock(Block node) {
623 for (Node statement in node.statements.nodes) { 617 for (Node statement in node.statements.nodes) {
624 if (statement is VariableDefinitions) { 618 if (statement is VariableDefinitions) {
625 makeVarDeclarationTypePlaceholder(statement); 619 makeVarDeclarationTypePlaceholder(statement);
626 } 620 }
627 } 621 }
628 node.visitChildren(this); 622 node.visitChildren(this);
629 } 623 }
630 } 624 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698