| Summary: | [DCR] Keep AST created in reconcile for active editor | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jerome Lanneluc <jerome_lanneluc> |
| Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, martinae, min123 |
| Version: | 2.1 | ||
| Target Milestone: | 3.0 M8 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Jerome Lanneluc
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. |