code: private FilePosition getEndPosition(Node node) throws IOException {
  		int length = node.getLength();
  		int lineno = currentLine;
  		int charno = currentChar;
  		while (charno + length > lineLengths[lineno]) {
  			length -= (lineLengths[lineno]-charno);
  			lineno++;
  			charno = 0;
  			if (lineno >= lineLengths.length) {
  				// Node has an invalid length
  				return new FilePosition(currentLine, currentChar);
  			}
  		}
  		charno += length;
  		return new FilePosition(lineno, charno);
  	}
docs: Returns a {@link FilePosition} for the end position of the input node
  
  @param node
  the node whose end position we are after.  Note that the Closure
  compiler provides node length information only if ide mode is
  true.
  @return the end position of the node
  @throws IOException