Commit bdca73c
committed
Fix double MyClass prefix when converting MyClass._Prop backing field access
When _Prop is accessed via MyClass._Prop, NameExpressionNodeVisitor.cs
already adds the MyClass prefix via "$MyClass{ConvertIdentifier(...).ValueText}".
The new ConvertIdentifier code was also returning MyClassProp for _Prop,
causing a double prefix MyClassMyClassProp.
Fix: detect when _Prop is part of a MyClass._Prop member access and
return the bare property name so NameExpressionNodeVisitor can prefix it.
https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX1 parent dc0596b commit bdca73c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| |||
0 commit comments