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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartNewExpression.java

Issue 9113064: Issue 1330. Return actual Type from DartNewExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for comments Created 8 years, 11 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java b/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
index 7d9012c604e9ef0350be2727227b59d2204a2afa..23382432a328cb6b698170ef80facf1527c03bad 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartNewExpression.java
@@ -7,6 +7,7 @@ package com.google.dart.compiler.ast;
import com.google.dart.compiler.common.HasSymbol;
import com.google.dart.compiler.common.Symbol;
import com.google.dart.compiler.resolver.ConstructorElement;
+import com.google.dart.compiler.type.Type;
import java.util.List;
@@ -29,6 +30,11 @@ public class DartNewExpression extends DartInvocation implements HasSymbol {
return constructor;
}
+ @Override
+ public Type getType() {
+ return constructor.getType();
+ }
+
public boolean isConst() {
return isConst;
}
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698