Closed Youssef1313 closed 11 months ago
Thanks for reporting!
It now generates this:
RecordDeclaration(
SyntaxKind.RecordStructDeclaration,
Token(SyntaxKind.RecordKeyword),
Identifier("A"))
.WithClassOrStructKeyword(
Token(SyntaxKind.StructKeyword))
.WithParameterList(
ParameterList())
.WithSemicolonToken(
Token(SyntaxKind.SemicolonToken))
.NormalizeWhitespace()
Currently produces:
If this is added to a compilation, the compilation is going to have
error CS0106: The "readonly" modifier is invalid for this element.
The record declaration call should be:
Found this while looking into https://stackoverflow.com/q/77094804/5108631