mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Make all overloads with self as its first parameter extension methods
This commit is contained in:
parent
4b1857e40d
commit
5c8b19ed93
3 changed files with 970 additions and 968 deletions
|
|
@ -254,6 +254,8 @@ foreach ($sourcePath in $sourcePaths)
|
|||
$tmp = $overload.Groups[0].Value
|
||||
$tmp = $referNativeFunction.Replace($tmp, "$( $className )Native.`$1")
|
||||
$tmp = $referNativeFunctionQualified.Replace($tmp, '$1Native.$2')
|
||||
$tmp = $tmp -creplace '(?<=Get[A-Za-z0-9_]+\()ref ([A-Za-z*]+) self(?=, |\))', 'this in $1 self'
|
||||
$tmp = $tmp -creplace '(?<=\()(ref )?([A-Za-z*]+) self(?=, |\))', 'this $1$2 self'
|
||||
$null = $sb.Append($tmp)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue