haxe-rename icon indicating copy to clipboard operation
haxe-rename copied to clipboard

Failing to rename simple public symbols

Open dubspeed opened this issue 6 months ago • 0 comments

👋 Hello,

in the example below, renaming "someValue" in DemoClassA does not reflect in its usage in the "WontRename" class.

package src;

class DemoClassA {
	public var someValue:String;
}

class SomeOtherClass {
	public function isEventFeatureFlag(aString:String):Bool {
		return false;
	}

	public function new() {}
}

class WontRename {
	var TESTRENAME:Bool = false;

	var _view:{
		isAssetsLoaded:Bool
	};
	var _someOtherClass:SomeOtherClass = new SomeOtherClass();

	function _onFeatureEnds(event:DemoClassA) {
		// misses a rename in the next line
		if (_view.isAssetsLoaded && _someOtherClass.isEventFeatureFlag(event.someValue) && TESTRENAME) {
			TESTRENAME = false;
		}
	}
}

dubspeed avatar Jul 29 '24 13:07 dubspeed