diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/NullSourceSection.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/NullSourceSection.java	Tue Mar 03 16:54:43 2015 -0800
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/NullSourceSection.java	Tue Mar 03 17:11:46 2015 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 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
@@ -73,6 +73,14 @@
         throw new UnsupportedOperationException(this.toString());
     }
 
+    public int getEndLine() {
+        throw new UnsupportedOperationException(this.toString());
+    }
+
+    public int getEndColumn() {
+        throw new UnsupportedOperationException(this.toString());
+    }
+
     public final int getCharIndex() {
         throw new UnsupportedOperationException(this.toString());
     }
@@ -101,5 +109,4 @@
     public String toString() {
         return getShortDescription();
     }
-
 }