2 overrides of GetMembers
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1257public override IReadOnlyList<SyntaxNode> GetMembers(SyntaxNode declaration)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2928Public Overrides Function GetMembers(declaration As SyntaxNode) As IReadOnlyList(Of SyntaxNode)
33 references to GetMembers
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (18)
CodeGeneration\SyntaxGeneratorTests.cs (18)
1521var method = Generator.GetMembers(iface)[0]; 2617=> AssertNamesEqual(expectedNames, Generator.GetMembers(declaration)); 2620=> AssertNamesEqual(new[] { expectedName }, Generator.GetMembers(declaration)); 2851=> Assert.Equal(0, Generator.GetMembers(Generator.RemoveNodes(declaration, Generator.GetMembers(declaration))).Count); 2855var newDecl = Generator.RemoveNode(declaration, Generator.GetMembers(declaration).First(m => Generator.GetName(m) == name)); 3449var x = Generator.GetMembers(root.Members[0])[0]; 3450var y = Generator.GetMembers(root.Members[0])[1]; 3470var x = Generator.GetMembers(root.Members[0])[0]; 3471var y = Generator.GetMembers(root.Members[0])[1]; 3493var x = Generator.GetMembers(root.Members[0])[0]; 3494var y = Generator.GetMembers(root.Members[0])[1]; 3495var z = Generator.GetMembers(root.Members[0])[2]; 3518var x = Generator.GetMembers(root.Members[0])[0]; 3519var y = Generator.GetMembers(root.Members[0])[1]; 3845var membersC = Generator.GetMembers(declC); 4308var declM = Generator.GetMembers(declC).First(); 4400var declM = Generator.GetMembers(declC).First();
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.vb (4)
3149AssertNamesEqual(expectedNames, Generator.GetMembers(declaration)) 3194Assert.Equal(0, Generator.GetMembers(Generator.RemoveNodes(declaration, Generator.GetMembers(declaration))).Count) 3536Dim membersC = Generator.GetMembers(declC)
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1205=> this.InsertMembers(declaration, this.GetMembers(declaration).Count, members);
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
Editing\SyntaxEditorTests.cs (9)
51var fieldX = editor.Generator.GetMembers(cls)[0]; 77var fieldX = editor.Generator.GetMembers(cls)[0]; 102var fieldX = editor.Generator.GetMembers(cls)[0]; 129var fieldX = editor.Generator.GetMembers(cls)[0]; 156var fieldX = editor.Generator.GetMembers(cls)[0]; 177var fieldX = editor.Generator.GetMembers(cls)[0]; 223var methodX = (MethodDeclarationSyntax)editor.Generator.GetMembers(cls)[0]; 267var methodX = (MethodDeclarationSyntax)editor.Generator.GetMembers(cls)[0]; 312var methodX = editor.Generator.GetMembers(cls)[0];
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
103foreach (var member in gen.GetMembers(node))