Skip to content

Commit 55e4c93

Browse files
Reviewed and we can remove the hacky global scope add for return type entirely
1 parent 82a3eaf commit 55e4c93

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

crates/bindings-csharp/Codegen/Module.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ namespace SpacetimeDB.Codegen;
22

33
using System.Collections.Immutable;
44
using System.Linq;
5-
using System.Text.RegularExpressions;
65
using Microsoft.CodeAnalysis;
76
using Microsoft.CodeAnalysis.CSharp;
87
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -998,11 +997,7 @@ public string GenerateViewDef(uint Index) =>
998997
IsPublic: {{{IsPublic.ToString().ToLower()}}},
999998
IsAnonymous: {{{IsAnonymous.ToString().ToLower()}}},
1000999
Params: [{{{MemberDeclaration.GenerateDefs(Parameters)}}}],
1001-
ReturnType: new {{{Regex.Replace(
1002-
ReturnType.BSATNName,
1003-
@"(?<=^|[<,\s])Module\.",
1004-
"global::Module."
1005-
)}}}().GetAlgebraicType(registrar)
1000+
ReturnType: new {{{ReturnType.BSATNName}}}().GetAlgebraicType(registrar)
10061001
);
10071002
""";
10081003

0 commit comments

Comments
 (0)