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

Side by Side Diff: pkg/compiler/lib/src/tree/nodes.dart

Issue 2498493003: kernel->ssa: get simple constructors working (Closed)
Patch Set: respond to comments Created 4 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 unified diff | Download patch
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 import 'dart:collection' show IterableMixin; 5 import 'dart:collection' show IterableMixin;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../elements/elements.dart' show MetadataAnnotation; 8 import '../elements/elements.dart' show MetadataAnnotation;
9 import '../resolution/secret_tree_element.dart' 9 import '../resolution/secret_tree_element.dart'
10 show NullTreeElementMixin, StoredTreeElementMixin; 10 show NullTreeElementMixin, StoredTreeElementMixin;
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 * (and should) be considered as message sends. Getters and setters 587 * (and should) be considered as message sends. Getters and setters
588 * are just methods with a special syntax. Consequently, we model 588 * are just methods with a special syntax. Consequently, we model
589 * property access, assignment, operators, and method calls with this 589 * property access, assignment, operators, and method calls with this
590 * one node. 590 * one node.
591 */ 591 */
592 class Send extends Expression with StoredTreeElementMixin { 592 class Send extends Expression with StoredTreeElementMixin {
593 final Node receiver; 593 final Node receiver;
594 final Node selector; 594 final Node selector;
595 final NodeList argumentsNode; 595 final NodeList argumentsNode;
596 596
597 /// Whether this is a conditinal send of the form `a?.b`. 597 /// Whether this is a conditional send of the form `a?.b`.
598 final bool isConditional; 598 final bool isConditional;
599 599
600 Link<Node> get arguments => argumentsNode.nodes; 600 Link<Node> get arguments => argumentsNode.nodes;
601 601
602 Send( 602 Send(
603 [this.receiver, 603 [this.receiver,
604 this.selector, 604 this.selector,
605 this.argumentsNode, 605 this.argumentsNode,
606 this.isConditional = false]); 606 this.isConditional = false]);
607 Send.postfix(this.receiver, this.selector, 607 Send.postfix(this.receiver, this.selector,
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after
3126 3126
3127 // VariableDefinitions. 3127 // VariableDefinitions.
3128 get metadata => null; 3128 get metadata => null;
3129 get type => null; 3129 get type => null;
3130 3130
3131 // Typedef. 3131 // Typedef.
3132 get typeParameters => null; 3132 get typeParameters => null;
3133 get formals => null; 3133 get formals => null;
3134 get typedefKeyword => null; 3134 get typedefKeyword => null;
3135 } 3135 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | tests/compiler/dart2js/kernel/constructors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698