Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/SourceSection.java @ 9333:c485a44097b3
toString for SourceSection.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Fri, 26 Apr 2013 10:22:33 -0700 |
parents | 5054a206fcf0 |
children | 5dc05fdcf3c2 |
comparison
equal
deleted
inserted
replaced
9327:d9b3221c577d | 9333:c485a44097b3 |
---|---|
115 * @return the code as a String object | 115 * @return the code as a String object |
116 */ | 116 */ |
117 public final String getCode() { | 117 public final String getCode() { |
118 return getSource().getCode().substring(charIndex, charLength); | 118 return getSource().getCode().substring(charIndex, charLength); |
119 } | 119 } |
120 | |
121 @Override | |
122 public String toString() { | |
123 return String.format("%s:%d", source.getName(), startLine); | |
124 } | |
125 | |
120 } | 126 } |