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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/tree/nodes.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 tree; 5 part of tree;
6 6
7 abstract class Visitor<R> { 7 abstract class Visitor<R> {
8 const Visitor(); 8 const Visitor();
9 9
10 R visitNode(Node node); 10 R visitNode(Node node);
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 bool get isFunctionObjectInvocation => selector == null; 359 bool get isFunctionObjectInvocation => selector == null;
360 bool get isPrefix => argumentsNode is Prefix; 360 bool get isPrefix => argumentsNode is Prefix;
361 bool get isPostfix => argumentsNode is Postfix; 361 bool get isPostfix => argumentsNode is Postfix;
362 bool get isCall => !isOperator && !isPropertyAccess; 362 bool get isCall => !isOperator && !isPropertyAccess;
363 bool get isIndex => 363 bool get isIndex =>
364 isOperator && identical(selector.asOperator().source.stringValue, '[]'); 364 isOperator && identical(selector.asOperator().source.stringValue, '[]');
365 bool get isLogicalAnd => 365 bool get isLogicalAnd =>
366 isOperator && identical(selector.asOperator().source.stringValue, '&&'); 366 isOperator && identical(selector.asOperator().source.stringValue, '&&');
367 bool get isLogicalOr => 367 bool get isLogicalOr =>
368 isOperator && identical(selector.asOperator().source.stringValue, '||'); 368 isOperator && identical(selector.asOperator().source.stringValue, '||');
369 bool get isParameterCheck =>
370 isOperator && identical(selector.asOperator().source.stringValue, '?');
371 369
372 bool get isTypeCast { 370 bool get isTypeCast {
373 return isOperator 371 return isOperator
374 && identical(selector.asOperator().source.stringValue, 'as'); 372 && identical(selector.asOperator().source.stringValue, 'as');
375 } 373 }
376 374
377 bool get isTypeTest { 375 bool get isTypeTest {
378 return isOperator 376 return isOperator
379 && identical(selector.asOperator().source.stringValue, 'is'); 377 && identical(selector.asOperator().source.stringValue, 'is');
380 } 378 }
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 * argument). 2115 * argument).
2118 * 2116 *
2119 * TODO(ahe): This method is controversial, the team needs to discuss 2117 * TODO(ahe): This method is controversial, the team needs to discuss
2120 * if top-level methods are acceptable and what naming conventions to 2118 * if top-level methods are acceptable and what naming conventions to
2121 * use. 2119 * use.
2122 */ 2120 */
2123 initializerDo(Node node, f(Node node)) { 2121 initializerDo(Node node, f(Node node)) {
2124 SendSet send = node.asSendSet(); 2122 SendSet send = node.asSendSet();
2125 if (send != null) return f(send.arguments.head); 2123 if (send != null) return f(send.arguments.head);
2126 } 2124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698