We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
RoslynQuoter generate for this:
public class CLASS_NAME : ClassTemplateBase { public CLASS_NAME() : base() { } }
Result:
CompilationUnit() .WithMembers( SingletonList<MemberDeclarationSyntax>( ClassDeclaration("CLASS_NAME") .WithModifiers( TokenList( Token(SyntaxKind.PublicKeyword))) .WithBaseList( BaseList( SingletonSeparatedList<BaseTypeSyntax>( SimpleBaseType( IdentifierName("ClassTemplateBase"))))) .WithMembers( SingletonList<MemberDeclarationSyntax>( ConstructorDeclaration( Identifier("CLASS_NAME")) .WithModifiers( TokenList( Token(SyntaxKind.PublicKeyword))) .WithInitializer( ConstructorInitializer( SyntaxKind.BaseConstructorInitializer, ArgumentList())) .WithBody( Block()))))) .NormalizeWhitespace()
What result with this:
public class CLASS_NAME : ClassTemplateBase { public CLASS_NAME(): base() { } }
The position of the colon is wrong
CLASS_NAME(): base()
it should be:
CLASS_NAME() : base()
like in the class declaration.
The text was updated successfully, but these errors were encountered:
That is an issue in NormalizeWhitespace() - not in the quoter... Please open an issue at dotnet/roslyn
Sorry, something went wrong.
Done! dotnet/roslyn#53254
This was fixed in Roslyn: dotnet/roslyn#53326
Leaving this bug open to track updating to a version of Roslyn that has that fix ^^
No branches or pull requests
Hi!
RoslynQuoter generate for this:
Result:
What result with this:
The position of the colon is wrong
it should be:
like in the class declaration.
The text was updated successfully, but these errors were encountered: