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

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

Issue 10449038: Issue 3251. Fixes for node type (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: compiler/java/com/google/dart/compiler/ast/DartNode.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartNode.java b/compiler/java/com/google/dart/compiler/ast/DartNode.java
index 77931caaa159644dfafc15fe0f52237aec53ba69..1259d36e59d77ffeefd7862fa8105cb317edb0f1 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartNode.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartNode.java
@@ -7,7 +7,6 @@ package com.google.dart.compiler.ast;
import com.google.dart.compiler.common.AbstractNode;
import com.google.dart.compiler.resolver.Element;
import com.google.dart.compiler.type.Type;
-import com.google.dart.compiler.type.Types;
import com.google.dart.compiler.util.DefaultTextOutput;
import java.util.List;
@@ -16,10 +15,8 @@ import java.util.List;
* Base class for all Dart AST nodes.
*/
public abstract class DartNode extends AbstractNode {
- private static final Type dynamicType = Types.newDynamicType();
-
private DartNode parent;
- private Type type = dynamicType;
+ private Type type;
public final String toSource() {
DefaultTextOutput out = new DefaultTextOutput(false);

Powered by Google App Engine
This is Rietveld 408576698