2 overrides of AddInterfaceType
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2665public override SyntaxNode AddInterfaceType(SyntaxNode declaration, SyntaxNode interfaceType)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
3256Public Overrides Function AddInterfaceType(declaration As SyntaxNode, interfaceType As SyntaxNode) As SyntaxNode
16 references to AddInterfaceType
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
CodeGeneration\SyntaxGeneratorTests.cs (4)
3755Generator.AddInterfaceType(classC, Generator.IdentifierName("T")), 3761Generator.AddInterfaceType(classCI, Generator.IdentifierName("T")), 3767Generator.AddInterfaceType(classCB, Generator.IdentifierName("T")), 4582var newDecl = Generator.AddInterfaceType(decl, Generator.IdentifierName("IDisposable"));
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
CodeGeneration\SyntaxGeneratorTests.vb (11)
3354Generator.AddInterfaceType(classC, Generator.IdentifierName("T")), 3361Generator.AddInterfaceType(classCB, Generator.IdentifierName("T")), 3369Generator.AddInterfaceType(classCI, Generator.IdentifierName("T")), 3376Generator.AddInterfaceType(structS, Generator.IdentifierName("T")), 3383Generator.AddInterfaceType(ifaceI, Generator.IdentifierName("T")), 3398Generator.AddInterfaceType(classC, Generator.IdentifierName("X")), " 3407Generator.AddInterfaceType(interfaceI, Generator.IdentifierName("X")), " 3417Generator.AddInterfaceType(classCX, Generator.IdentifierName("Y")), " 3428Generator.AddInterfaceType(interfaceIX, Generator.IdentifierName("Y")), " 3440Generator.AddInterfaceType(classCXY, Generator.IdentifierName("Z")), " 3453Generator.AddInterfaceType(interfaceIXY, Generator.IdentifierName("Z")), "
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxEditorExtensions.cs (1)
74=> editor.ReplaceNode(declaration, (d, g) => g.AddInterfaceType(d, interfaceType));