if (type == null && JavaSource.Phase.RESOLVED.compareTo(controller.getPhase()) > 0) { controller.toPhase(Phase.RESOLVED); type = controller.getTrees().getTypeMirror(new TreePath(methodOrLambdaPath, retTree)); for (ExpressionTree thr : ((MethodTree) methodPath.getLeaf()).getThrows()) { type = trees.getTypeMirror(new TreePath(methodPath, thr)); if (type == null && JavaSource.Phase.RESOLVED.compareTo(controller.getPhase()) > 0) { controller.toPhase(Phase.RESOLVED); type = trees.getTypeMirror(new TreePath(methodPath, thr));
@Override public void run(CompilationController ci) throws Exception { if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
if (controller == null || controller.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) { return;
Phase currentPhase = currentInfo.getPhase(); try { if (currentPhase.compareTo(Phase.PARSED)<0 && phase.compareTo(Phase.PARSED)>=0 && phase.compareTo(parserError)<=0) { if (cancellable && parserCanceled.get()) { if (currentPhase == Phase.PARSED && phase.compareTo(Phase.ELEMENTS_RESOLVED)>=0 && phase.compareTo(parserError)<=0) { if (cancellable && parserCanceled.get()) { return Phase.MODIFIED; logTime(currentInfo.getFileObject(),currentPhase,(end-start)); if (currentPhase == Phase.ELEMENTS_RESOLVED && phase.compareTo(Phase.RESOLVED)>=0 && phase.compareTo(parserError)<=0) { if (cancellable && parserCanceled.get()) { return Phase.MODIFIED; logTime(currentInfo.getFileObject(),currentPhase,(end-start)); if (currentPhase == Phase.RESOLVED && phase.compareTo(Phase.UP_TO_DATE)>=0) { currentPhase = Phase.UP_TO_DATE;
if (controller == null || controller.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) { return;
if (JavaSource.Phase.RESOLVED.compareTo(controller.getPhase()) > 0) { LinkedList<TreePath> reversePath = new LinkedList<>(); TreePath treePath = path;
return; if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
private Operation[] computeOperations(CompilationController ci, int offset, int lineNumber, BytecodeProvider bytecodeProvider) throws IOException { if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
resuslt); if (controller == null || controller.toPhase(Phase.RESOLVED). compareTo(Phase.RESOLVED) < 0)
if (reachedPhase.compareTo(requiredPhase)>=0) { ClassIndexImpl.cancel.set(indexCanceled); result = new JavacParserResult(JavaSourceAccessor.getINSTANCE().createCompilationInfo(ciImpl));
@Override public void run(CompilationController ci) throws Exception { if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
return; if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
@Override public void run(CompilationController ci) throws Exception { if (ci.toPhase(Phase.PARSED).compareTo(Phase.PARSED) < 0) { return ;
@Override public void run(CompilationController ci) throws Exception { if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
return; if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+
if (info.getPhase().compareTo(Phase.ELEMENTS_RESOLVED) >= 0) { String fqn = ((TypeElement) annotation.getAnnotationType().asElement()).getQualifiedName().toString(); Iterable<? extends Processor> processors = info.impl.getJavacTask().getProcessors();
if (currentPhase.compareTo(requiredPhase)<0) { ciImpl.setPhase(requiredPhase);
return; if (ci.toPhase(Phase.RESOLVED).compareTo(Phase.RESOLVED) < 0) {//TODO: ELEMENTS_RESOLVED may be sufficient ErrorManager.getDefault().log(ErrorManager.WARNING, "Unable to resolve "+ci.getFileObject()+" to phase "+Phase.RESOLVED+", current phase = "+ci.getPhase()+