}
int lineNumber = 0;
int columnNumber = 1;
char[] fileName = null;
if (referenceContext != null) {
CompilationResult result = referenceContext.compilationResult();
fileName = result.fileName;
int[] lineEnds = null;
lineNumber = startPosition >= 0
? Util.getLineNumber(startPosition, lineEnds = result.getLineSeparatorPositions(), 0, lineEnds.length-1)
: 0;