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

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

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo 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/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 fb8a7b4d2f1343954a005e788d257bc636927abf..1da622c68b7d78eeedd11d63a202fdf60a53c376 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartNode.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartNode.java
@@ -76,43 +76,6 @@ public abstract class DartNode extends AbstractNode {
return root;
}
- /**
- * Returns the length in characters of the original source file indicating
- * where the source fragment corresponding to this node ends.
- * <p>
- * The parser supplies useful well-defined source ranges to the nodes it
- * creates.
- *
- * @return a (possibly 0) length, or <code>0</code> if no source startPosition
- * information is recorded for this node
- * @see #getStartPosition()
- * @see #setSourceRange(int, int)
- * @deprecated
- */
- @Deprecated
- public int getLength() {
- return getSourceLength();
- }
-
- /**
- * Returns the character index into the original source file indicating where
- * the source fragment corresponding to this node begins.
- * <p>
- * The parser supplies useful well-defined source ranges to the nodes it
- * creates. See {@link ASTParser#setKind(int)} for details on precisely where
- * source ranges begin and end.
- *
- * @return the 0-based character index, or <code>-1</code> if no source
- * startPosition information is recorded for this node
- * @see #getLength()
- * @see #setSourceRange(int, int)
- * @deprecated
- */
- @Deprecated
- public int getStartPosition() {
- return getSourceStart();
- }
-
protected <T extends DartNode> T becomeParentOf(T child) {
if (child != null) {
DartNode node = child; // Java 7 access rules require a temp of a concrete type.
« no previous file with comments | « compiler/java/com/google/dart/compiler/ast/DartComment.java ('k') | compiler/java/com/google/dart/compiler/ast/DartUnit.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698