Skip to content

Microsoft.CodeAnalysis.CSharp.CodeGeneration.CSharpCodeGenerationService.AddMethod should be adjusted to deal with "Top-level statements" #44425

@AlekseyTs

Description

@AlekseyTs
        protected override TDeclarationNode AddMethod<TDeclarationNode>(TDeclarationNode destination, IMethodSymbol method, CodeGenerationOptions options, IList<bool> availableIndices)
        {
            // PROTOTYPE(TopLevelStatements): Add handling for top level statements
            if (destination is GlobalStatementSyntax)
            {
                return destination;
            }

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions