Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] Question concerning the reconciler


Olivier,

For the reconciler, I'd say that semantic highlightings (e.g. coloring fields, deprecations, etc.) resolve bindings of *all* SimpleNames; but as usual, it depends on what highlightings the user has enabled.

Maybe someone form the JDT/Text team can give you more information here.

Markus




Dirk Baeumer/Zurich/IBM@IBMCH
Sent by: jdt-ui-dev-bounces@xxxxxxxxxxx

2005-04-11 15:00

Please respond to
"Eclipse JDT UI developers list." <jdt-ui-dev@xxxxxxxxxxx>

To
"Eclipse JDT UI developers list." <jdt-ui-dev@xxxxxxxxxxx>
cc
Subject
Re: [jdt-ui-dev] Question concerning the reconciler





Olivier,

unfortunatelly, this depend on the refactoring. Some expamples are:

- extract method: only resolved the bindings for the statements to be
extracted plus the once from the method containing the statements
- surround with: same as extract method
- inline: resolves the bindings from all simple name nodes in the CU
- self encapsulate field: resolves the bindings from all simple name nodes
in the CU.

In general you can say that refactoring acting locally only resolve some
bindings. Refactoring that affect more than one CU mostly resolve the
bindings of many elements.

Does the patch have any performance impacts on navigating the bindings. For
example if I receive an ITypeBinding and ask it for all its methods, ....
Given an answer here requires more code inspection.

Dirk


                                                                         
            Olivier Thomann                                              
            <Olivier_Thomann@                                            
            ca.ibm.com>                                                To
            Sent by:                  jdt-ui-dev@xxxxxxxxxxx              
            jdt-ui-dev-bounce                                          cc
            s@xxxxxxxxxxx                                                
                                                                  Subject
                                      [jdt-ui-dev] Question concerning    
            08.04.2005 18:04          the reconciler                      
                                                                         
                                                                         
            Please respond to                                            
             "Eclipse JDT UI                                              
            developers list."                                            
            <jdt-ui-dev@eclip                                            
                 se.org>                                                  
                                                                         
                                                                         





Hi,

In order to know how I can fix
https://bugs.eclipse.org/bugs/show_bug.cgi?id=89281, I'd like to know what
operations are done on the DOM/AST tree once it is returned by the
reconciler. I didn't see a performance test that is specific to the
reconciling of a compilation unit.

The attached patch might end up with slower performance if the bindings
like fields and methods are never requested for the requested units, but if
these bindings are retrieved frequently, the patch won't impact the speed
and it will save memory.

Olivier_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev


_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-ui-dev


Back to the top