Skip to content

Commit ab542b0

Browse files
committed
Using simple pointers by default for class references.
1 parent 066e8a1 commit ab542b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public class CSharpToCppTransformer : Transformer
5757
// static const int MaxPath = 92;
5858
(new Regex(@"private (const|static readonly) ([a-zA-Z0-9]+) ([_a-zA-Z0-9]+) = ([^;\r\n]+);"), "static const $2 $3 = $4;", null, 0),
5959
// ArgumentNotNull(EnsureAlwaysExtensionRoot root, TArgument argument) where TArgument : class
60-
// ArgumentNotNull(EnsureAlwaysExtensionRoot root, TArgument& argument)
61-
(new Regex(@"(?<before> [a-zA-Z]+\(([a-zA-Z *,]+, |))(?<type>[a-zA-Z]+)(?<after>(| [a-zA-Z *,]+)\))[ \r\n]+where \k<type> : class"), "${before}${type}&${after}", null, 0),
60+
// ArgumentNotNull(EnsureAlwaysExtensionRoot root, TArgument* argument)
61+
(new Regex(@"(?<before> [a-zA-Z]+\(([a-zA-Z *,]+, |))(?<type>[a-zA-Z]+)(?<after>(| [a-zA-Z *,]+)\))[ \r\n]+where \k<type> : class"), "${before}${type}*${after}", null, 0),
6262
// protected virtual
6363
// virtual
6464
(new Regex(@"protected virtual"), "virtual", null, 0),

0 commit comments

Comments
 (0)