Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java @ 19695:33bdafbf285d
Truffle: SourceSection can now produce the line/column coordinates of its final character
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 03 Mar 2015 17:11:46 -0800 |
parents | 74e142bd2b12 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java Tue Mar 03 16:54:43 2015 -0800 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceSection.java Tue Mar 03 17:11:46 2015 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -66,6 +66,20 @@ int getStartColumn(); /** + * Returns 1-based line number of the last character in this section (inclusive). + * + * @return the starting line number + */ + int getEndLine(); + + /** + * Returns the 1-based column number of the last character in this section (inclusive). + * + * @return the starting column number + */ + int getEndColumn(); + + /** * Returns the 0-based index of the first character in this section. * * @return the starting character index