changeset 22485:55e2a3f21528

Truffle/Source: second backout of backout 64d5619ebbce (change to SourceSection unknown)
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 07 Dec 2015 22:07:59 -0800
parents 1b11227a5a61
children be8a3334434d
files truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java	Mon Dec 07 21:54:55 2015 -0800
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java	Mon Dec 07 22:07:59 2015 -0800
@@ -37,12 +37,6 @@
  * @see #createUnavailable
  */
 public final class SourceSection {
-
-    /**
-     * The identifier stored when source information is unavailable.
-     */
-    public static String UNKNOWN = "<unknown>";
-
     private final Source source;
     private final String identifier;
     private final int startLine;
@@ -281,6 +275,6 @@
      * @return source section which is mostly <em>empty</em>
      */
     public static SourceSection createUnavailable(String kind, String name) {
-        return new SourceSection(kind, null, name == null ? UNKNOWN : name, -1, -1, -1, -1);
+        return new SourceSection(kind, null, name == null ? "<unknown>" : name, -1, -1, -1, -1);
     }
 }