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

Unified Diff: dart/lib/compiler/implementation/tree/nodes.dart

Issue 11227007: Unify parsing of constructor references. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add asRaw from other CL Created 8 years, 2 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: dart/lib/compiler/implementation/tree/nodes.dart
diff --git a/dart/lib/compiler/implementation/tree/nodes.dart b/dart/lib/compiler/implementation/tree/nodes.dart
index 0d593a1c87762571f040596127c33ee826d2f987..1c158ed0049c365a9849e2a82fd803c6c33e1353 100644
--- a/dart/lib/compiler/implementation/tree/nodes.dart
+++ b/dart/lib/compiler/implementation/tree/nodes.dart
@@ -332,22 +332,6 @@ class Send extends Expression {
assert(receiver == null);
return new Send(newReceiver, selector, argumentsNode);
}
-
- /**
- * Returns the type annotation of a connstructor call in an object
- * instantiation.
- */
- TypeAnnotation getTypeAnnotation() {
- if (selector is TypeAnnotation) {
- return selector;
- } else if (selector is Send) {
- Send selectorSend = selector;
- if (selectorSend.receiver is TypeAnnotation) {
- return selectorSend.receiver;
- }
- }
- return null;
- }
}
class Postfix extends NodeList {
« no previous file with comments | « dart/lib/compiler/implementation/ssa/builder.dart ('k') | dart/lib/compiler/implementation/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698