Skip to content

Commit

Permalink
Tuple to Hash rule fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed Mar 17, 2020
1 parent 48ae236 commit 162a352
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ public class CSharpToCppTransformer : TextTransformer
// ({1, 2})
(new Regex(@"(?<before>\(|, )\((?<first>[^\n()]+), (?<second>[^\n()]+)\)(?<after>\)|, )"), "${before}{${first}, ${second}}${after}", 10),
// {1, 2}.GetHashCode()
// Platform::Hashing::Hash({1, 2})
(new Regex(@"{(?<first>[^\n{}]+), (?<second>[^\n{}]+)}\.GetHashCode\(\)"), "Platform::Hashing::Hash({${first}, ${second}})", 10),
// Platform::Hashing::Hash(1, 2)
(new Regex(@"{(?<first>[^\n{}]+), (?<second>[^\n{}]+)}\.GetHashCode\(\)"), "Platform::Hashing::Hash(${first}, ${second})", 10),
// range.ToString()
// Platform::Converters::To<std::string>(range).data()
(new Regex(@"(?<before>\W)(?<variable>[_a-zA-Z][_a-zA-Z0-9]+)\.ToString\(\)"), "${before}Platform::Converters::To<std::string>(${variable}).data()", 10),
Expand Down

0 comments on commit 162a352

Please sign in to comment.