Commit f5d29c3
[generator] Ensure all usage of parameter names are escaped the same (#506)
If a method parameter contains a dollar sign, `generator` sometimes
escapes it properly and sometimes it does not:
public unsafe global::Okio.ByteString Of (byte[] _this_toByteString_, int offset, int byteCount)
{
// ...
if ($this$toByteString != null) {
JNIEnv.CopyArray (native__this_toByteString_, $this$toByteString);
JNIEnv.DeleteLocalRef (native__this_toByteString_);
}
That contains both `_this_toByteString_` and `$this$toByteString`.
Ensures all instances use the same `opt.GetSafeIdentifier(string)`
escaping method so that `$` doesn't remain within generated sources.1 parent 17cdf54 commit f5d29c3
File tree
2 files changed
+19
-2
lines changed- tools/generator
- Java.Interop.Tools.Generator.ObjectModel/Symbols
- Tests/Unit-Tests
2 files changed
+19
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
865 | 882 | | |
866 | 883 | | |
0 commit comments