File tree Expand file tree Collapse file tree
src/generators/SourceKit.Generators.Grpc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ public UsingDirectiveSyntax Process(
1515 {
1616 const string comment = """
1717 // <auto-generated>
18- // This code was generated by a SourceKit.Generators.Grpc code generator.
19- // https://github.com/itmo-is-dev/SourceKit
18+ // This code was generated by a SourceKit.Generators.Grpc code generator.
19+ // https://github.com/itmo-is-dev/SourceKit
2020 // </auto-generated>
2121 """ ;
2222
Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ public void Execute(GeneratorExecutionContext context)
3131 CompilationUnitSyntax unit = CompilationUnit ( ) . AddUsings ( directives ) . NormalizeWhitespace ( eol : "\n " ) ;
3232 string text = unit . ToFullString ( ) ;
3333
34+ text = $ """
35+ // <auto-generated>
36+ // This code was generated by a SourceKit.Generators.Grpc code generator.
37+ // https://github.com/itmo-is-dev/SourceKit
38+ // </auto-generated>
39+
40+ { text }
41+ """ ;
42+
3443 context . AddSource ( "SourceKit.Generators.Builder.ProtoAlias.cs" , text ) ;
3544 }
3645
@@ -40,4 +49,4 @@ private static UsingDirectiveSyntax GenerateAlias(INamedTypeSymbol symbol)
4049 . WithGlobalKeyword ( Token ( SyntaxKind . GlobalKeyword ) )
4150 . WithAlias ( NameEquals ( IdentifierName ( $ "Proto{ symbol . Name } ") ) ) ;
4251 }
43- }
52+ }
You can’t perform that action at this time.
0 commit comments