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!
there is an issue in the NormalizeWhitespace() methode:
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:
This looks like a duplicate of #35371.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi!
there is an issue in the NormalizeWhitespace() methode:
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: