Community
Participate
Working Groups
20060301 Having an AST in hand it is not possible to know if such an AST was created with bindings and if it was created with statement recovery. Sometimes you get an AST from some API (e.g. ReconcileContext.getAST3) and you need to know if you can work with this AST. Most times it is essential to know that bindings were resolved and if statement recovery occurred. Suggestion: new API - hasResolvedBindings(): boolean - hasStatementRecovery(): boolean
Philippe, Do you want these two APIs?
Would be nice for 3.3 if its a simple fix.
I'll take care of that.
API should go on the AST class, I guess.
Yes
So I guess you also need to know if binding are incomplete (binding recovery enabled) ?
Created attachment 60709 [details] First draft This doesn't contain the code for the binding recovery flag since this depends on bug 149567. It will be added if bug 149567 is fixed for 3.3M6.
+1
Released for 3.3M6 as a macro patch with fix for 149567. Regression tests added in org.eclipse.jdt.core.tests.dom.ASTConverter15Test#test0253/0257 and org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2#test0670/0673
Verified for 3.3 M6 using build I20070320-0010