diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java @ 18485:e3c95cbbb50c

Truffle Instrumentation: major API revision, based around the Probe and Instrument classes; add Instrumentable API for language implementors, with most details automated; reimplemented to handle AST splitting automatically; more JUnit tests.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Sun, 23 Nov 2014 16:07:23 -0800
parents c88ab4f1f04a
children f17b2a0303db
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java	Fri Nov 21 13:16:02 2014 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java	Sun Nov 23 16:07:23 2014 -0800
@@ -904,8 +904,13 @@
         }
 
         @Override
+        public String getShortDescription() {
+            return source.getShortName() + ":" + line;
+        }
+
+        @Override
         public String toString() {
-            return "SourceLine [" + source.getName() + ", " + line + "]";
+            return "Line[" + getShortDescription() + "]";
         }
 
         @Override