eclipse / xtext

Eclipse Xtext™ is a language development framework
http://www.eclipse.org/Xtext
Eclipse Public License 2.0
767 stars 320 forks source link

Rename Refactoring is order dependent #2403

Open cdietrich opened 7 years ago

cdietrich commented 7 years ago

Using

Model: {Model}
    elements+=Element*
    refs+=Ref*
;

Element:
    'element' name=ID
;

Ref:
    "ref" ref=[Element]
;   

and

element A 
element B 
ref A 
ref B

refactoring behaves differently if i rename A to B or i rename B to A.

since the scoping behaviour behind this is intended https://github.com/eclipse/xtext-core/issues/152 the refactoring must do the checks differently

miklossy commented 5 years ago

See also https://www.eclipse.org/forums/index.php/t/1098395/