Community
Participate
Working Groups
Build 2.1 Keep AST created in reconcile for active editor and make it accessible for the UI.
It is very likely that this AST wouldn't carry bindings in their current form, since these are holding on too much memory.
As binding are essential, they should maybe be more 'on-demand ' in this case: E.g keep the bindings as weak references and be able to regenerate them on demand.
Jerome, Martin told me you are working on this. The best for us would be to get the AST along with the reconcile process or get an API to ask for it. Can you outline your solution and a date upon which we can expect it? Thanks.
It is in HEAD. See ICompilationUnit.reconcile(boolean, boolean, WorkingCopyOwner, IProgressMonitor). It will be available in next integration build (if we contribute, I don't know yet).
Added new API ICompilationUnit.reconcile(boolean createAST, boolean forceProblemDetection, WorkingCopyOwner owner, IProgressMonitor monitor) that returns a DOM CompilationUnit if asked to create the AST. See the Java doc for more details. Added tests ASTConverterTest2.test0538a() to test0538e()
Verified for 3.0 using build I200403250800.