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

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

Issue 278823002: dart2dart: Method and constructor calls in new backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed call to addArgumentsToList. Created 6 years, 7 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 5
6 // OPEN DESIGN QUESTIONS: 6 // OPEN DESIGN QUESTIONS:
7 7
8 // Should the AST enforce that variable definitions are hoisted at the top? 8 // Should the AST enforce that variable definitions are hoisted at the top?
9 // This would simplify the AST for [For] and [ForIn] and also simplify block 9 // This would simplify the AST for [For] and [ForIn] and also simplify block
10 // flattening. 10 // flattening.
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 446 }
447 447
448 /// Expression of form `new T(..)`, `new T.f(..)`, `const T(..)`, 448 /// Expression of form `new T(..)`, `new T.f(..)`, `const T(..)`,
449 /// or `const T.f(..)`. 449 /// or `const T.f(..)`.
450 class CallNew extends Expression { 450 class CallNew extends Expression {
451 final bool isConst; 451 final bool isConst;
452 final TypeAnnotation type; 452 final TypeAnnotation type;
453 final String constructorName; 453 final String constructorName;
454 final List<Argument> arguments; 454 final List<Argument> arguments;
455 455
456 elements.FunctionElement constructor;
457 types.DartType dartType;
458
456 CallNew(this.type, 459 CallNew(this.type,
457 this.arguments, 460 this.arguments,
458 { this.constructorName, 461 { this.constructorName,
459 this.isConst: false }); 462 this.isConst: false });
460 } 463 }
461 464
462 /// Expression of form `T.f(..)`. 465 /// Expression of form `T.f(..)`.
463 class CallStatic extends Expression { 466 class CallStatic extends Expression {
464 final String className; 467 final String className;
465 final String methodName; 468 final String methodName;
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 final StringChunk previous; 1497 final StringChunk previous;
1495 final tree.StringQuoting quoting; 1498 final tree.StringQuoting quoting;
1496 num cost; 1499 num cost;
1497 1500
1498 OpenStringChunk(this.previous, this.quoting, this.cost); 1501 OpenStringChunk(this.previous, this.quoting, this.cost);
1499 1502
1500 StringChunk end(int endIndex) { 1503 StringChunk end(int endIndex) {
1501 return new StringChunk(previous, quoting, endIndex); 1504 return new StringChunk(previous, quoting, endIndex);
1502 } 1505 }
1503 } 1506 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698