16 references to ParseMemberDeclaration
Microsoft.CodeAnalysis.CSharp.Features (1)
Copilot\CSharpCopilotCodeFixProvider.cs (1)
108
var memberDeclaration = SyntaxFactory.
ParseMemberDeclaration
(fix, options: method.SyntaxTree.Options);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Source\NullablePublicAPITests.cs (2)
4513
var methodDeclaration = (MethodDeclarationSyntax)SyntaxFactory.
ParseMemberDeclaration
(@"
4545
var methodDeclaration = (MethodDeclarationSyntax)SyntaxFactory.
ParseMemberDeclaration
(@"
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Parsing\MemberDeclarationParsingTests.cs (3)
25
return SyntaxFactory.
ParseMemberDeclaration
(text, offset, options);
77
var d = SyntaxFactory.
ParseMemberDeclaration
(sb.ToString());
144
var d = SyntaxFactory.
ParseMemberDeclaration
("namespace ns {}", options: options);
Parsing\ParsingTests.cs (1)
108
var node = SyntaxFactory.
ParseMemberDeclaration
(text, offset, options, consumeFullText);
Syntax\SyntaxFactoryTests.cs (2)
615
? [SyntaxFactory.
ParseMemberDeclaration
("private int i;")]
616
: SyntaxFactory.SingletonList(SyntaxFactory.
ParseMemberDeclaration
("private int i;")));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (7)
CodeGeneration\SyntaxGeneratorTests.cs (7)
3128
var fileClass = (ClassDeclarationSyntax)
ParseMemberDeclaration
("file class C { }");
3138
var fileClass = (ClassDeclarationSyntax)
ParseMemberDeclaration
("file class C { }");
3148
var abstractClass = (ClassDeclarationSyntax)
ParseMemberDeclaration
("abstract class C { }");
3158
var publicClass = (ClassDeclarationSyntax)
ParseMemberDeclaration
("public class C { }");
3168
var property = (PropertyDeclarationSyntax)
ParseMemberDeclaration
("public virtual int P { get; }");
3176
var property = (PropertyDeclarationSyntax)
ParseMemberDeclaration
("public required int P { get; }");
3186
var property = (PropertyDeclarationSyntax)
ParseMemberDeclaration
($$"""{{modifier}} int P { get; }""");