/** * Returns {@link Document} of this {@link CompilationInfoImpl} * @return Document or null when the {@link DataObject} doesn't * exist or has no {@link EditorCookie}. * @throws java.io.IOException */ public @CheckForNull Document getDocument() throws IOException { //XXX cleanup: IOException is no longer required? Used by PositionEstimator, DiffFacility checkConfinement(); return this.impl.getDocument(); }
currentInfo.setCompilationUnit(unit); assert !it.hasNext(); final Document doc = currentInfo.getDocument(); if (doc != null && supportsReparse) { final FindMethodRegionsVisitor v = new FindMethodRegionsVisitor(doc,Trees.instance(currentInfo.getJavacTask()).getSourcePositions(),this.parserCanceled, unit);