-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: rename传播问题,xml inner rule加入后,受到间接影响的identifier依然没有被rename #120
Comments
我这没有复现: 3d666d3 的测试结果显示产生了两个 rename。 |
有没有可能是存在前置rule的时候会有问题?我跑了测试,也可以通过,但是在rename eva中project.rename就只会返回一个结果。 |
测试时的flowgraph: flowgraph:
r-layout:
- $
r-menu:
- $
r-dataBindingClassLink:
- $
r-id:
- r-layout
- r-menu
- r-dataBindingClassLink
- $
r-android-id:
- r-layout
- r-menu
- r-dataBindingClassLink
- $
r-dataBindingClass:
- $
r-include-layout:
- r-dataBindingClassLink
- r-layout
r-include-id:
- r-include-layout
r-include-dataBinding:
- r-include-layout
r-dataBinding:
- r-dataBindingClassLink
- r-layout
# - $
r-xml-inner:
- r-id
- r-dataBinding
r-xml-include-inner:
- r-include-id
r-xml-include-inter:
- r-include-id |
@shigma 仔细测试了一下,在前置rule替换为($)或(r-id, r-dataBindingClassLink)时,是能找到对应的XLL的(之前说没找到应该是文件太大导致的加载问题)。这个行为是预料内的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
为了实现对xml文件中并非直接与java元素link的identifier的rename,我加入了以下rule:
根据这条rule可以在某个例子中得到如下的inner link:
其中上面xll中的def方(第一条uri)与一个java元素绑定:
以上行为都在预期之中,但是当我rename这个java元素时,预期的行为应该是inner link中的两个uri都被rename,但事实上只有databinding link中的xml uri被rename了:
The text was updated successfully, but these errors were encountered: