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

Unified Diff: compiler/java/com/google/dart/compiler/common/HasSourceInfoSetter.java

Issue 9692002: Step back and remove more getNode() invocations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/common/HasSourceInfoSetter.java
diff --git a/compiler/java/com/google/dart/compiler/common/HasSourceInfo.java b/compiler/java/com/google/dart/compiler/common/HasSourceInfoSetter.java
similarity index 55%
copy from compiler/java/com/google/dart/compiler/common/HasSourceInfo.java
copy to compiler/java/com/google/dart/compiler/common/HasSourceInfoSetter.java
index 105aa68e1f5600d27f0e50e5f95837d52f5b3b1f..6d419429aa7ed64b3ee6ebd9a3f87a608e10b20f 100644
--- a/compiler/java/com/google/dart/compiler/common/HasSourceInfo.java
+++ b/compiler/java/com/google/dart/compiler/common/HasSourceInfoSetter.java
@@ -5,18 +5,12 @@
package com.google.dart.compiler.common;
/**
- * Abstract view of a class that has source info.
+ * Object for which you can set new {@link SourceInfo}.
*/
-public interface HasSourceInfo {
-
- /**
- * @return the {@link SourceInfo} associated with this object. May be {@link SourceInfo#UNKNOWN}
- * but not <code>null</code>.
- */
- SourceInfo getSourceInfo();
+public interface HasSourceInfoSetter {
/**
* Set the {@link SourceInfo} associated with this object. May only be called only once.
*/
- void setSourceInfo(SourceInfo info);
+ void setSourceInfo(SourceInfo sourceInfo);
}

Powered by Google App Engine
This is Rietveld 408576698