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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java

Issue 10459070: Infer also field types in classes and top-level (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use Type.isInferred() 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/resolver/VariableElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
index 54c810621c57070acd4c0c7a7843f9829c558c64..8e19ed4db48a66013c41469e52a9d63aa95200ca 100644
--- a/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/VariableElementImplementation.java
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, 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.
@@ -22,7 +22,6 @@ class VariableElementImplementation extends AbstractNodeElement implements Varia
// this.foo by the resolver.
private FieldElement fieldElement;
private Type type;
- private boolean typeInferred;
VariableElementImplementation(EnclosingElement owner,
DartNode node,
@@ -65,15 +64,6 @@ class VariableElementImplementation extends AbstractNodeElement implements Varia
public Type getType() {
return type;
}
-
- public void setTypeInferred(boolean typeInferred) {
- this.typeInferred = typeInferred;
- }
-
- @Override
- public boolean isTypeInferred() {
- return typeInferred;
- }
@Override
public boolean isNamed() {

Powered by Google App Engine
This is Rietveld 408576698