Skip to content

Commit 6ea1139

Browse files
committed
Interface method definitions now can be translated when overlapped.
1 parent 549e13c commit 6ea1139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class CSharpToCppTransformer : Transformer
6464
(new Regex(@"protected abstract ([^;]+);"), "virtual $1 = 0;", null, 0),
6565
// TElement GetFirst();
6666
// virtual TElement GetFirst() = 0;
67-
(new Regex(@"([\r\n]+[ ]+)((?!return)[a-zA-Z0-9]+ [a-zA-Z0-9]+\([^\)]*\))(;[ ]*[\r\n]+)"), "$1virtual $2 = 0$3", null, 0),
67+
(new Regex(@"([\r\n]+[ ]+)((?!return)[a-zA-Z0-9]+ [a-zA-Z0-9]+\([^\)]*\))(;[ ]*[\r\n]+)"), "$1virtual $2 = 0$3", null, 1),
6868
// public virtual
6969
// virtual
7070
(new Regex(@"public virtual"), "virtual", null, 0),

0 commit comments

Comments
 (0)