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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_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: Formatting and copyright notice. 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
index cee97ee921f69284926bcb4abda67a13bf2ae175..e925426b14c4581a37923efca306a728d1b03d91 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_tree_printer.dart
@@ -1,3 +1,7 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
library dart_tree_printer;
import 'dart_printer.dart';
@@ -304,6 +308,7 @@ class TreePrinter {
selector = new tree.TypeAnnotation(
selector,
typeArgList(exp.type.typeArguments.map(makeType)));
+ setType(selector, exp.dartType, exp);
}
if (exp.constructorName != null) {
selector = new tree.Send(
@@ -317,6 +322,8 @@ class TreePrinter {
result = new tree.NewExpression(
exp.isConst ? constToken : newToken,
send);
+ setType(result, exp.dartType, exp);
+ setElement(send, exp.constructor, exp);
} else if (exp is CallStatic) {
precedence = CALLEE;
result = new tree.Send(

Powered by Google App Engine
This is Rietveld 408576698