Make all overloads with self as its first parameter extension methods

This commit is contained in:
Soreepeong 2025-08-04 20:46:05 +09:00
parent 4b1857e40d
commit 5c8b19ed93
3 changed files with 970 additions and 968 deletions

View file

@ -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)
}
}