Skip to content

Commit 162a352

Browse files
committed
Tuple to Hash rule fix.
1 parent 48ae236 commit 162a352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ public class CSharpToCppTransformer : TextTransformer
560560
// ({1, 2})
561561
(new Regex(@"(?<before>\(|, )\((?<first>[^\n()]+), (?<second>[^\n()]+)\)(?<after>\)|, )"), "${before}{${first}, ${second}}${after}", 10),
562562
// {1, 2}.GetHashCode()
563-
// Platform::Hashing::Hash({1, 2})
564-
(new Regex(@"{(?<first>[^\n{}]+), (?<second>[^\n{}]+)}\.GetHashCode\(\)"), "Platform::Hashing::Hash({${first}, ${second}})", 10),
563+
// Platform::Hashing::Hash(1, 2)
564+
(new Regex(@"{(?<first>[^\n{}]+), (?<second>[^\n{}]+)}\.GetHashCode\(\)"), "Platform::Hashing::Hash(${first}, ${second})", 10),
565565
// range.ToString()
566566
// Platform::Converters::To<std::string>(range).data()
567567
(new Regex(@"(?<before>\W)(?<variable>[_a-zA-Z][_a-zA-Z0-9]+)\.ToString\(\)"), "${before}Platform::Converters::To<std::string>(${variable}).data()", 10),

0 commit comments

Comments
 (0)