SymbolEditorExtensions.GetBaseOrInterfaceDeclarationReferenceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the reference to the declaration of the base or interface type as part of the symbol's declaration.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode> GetBaseOrInterfaceDeclarationReferenceAsync (this Microsoft.CodeAnalysis.Editing.SymbolEditor editor, Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.ITypeSymbol baseOrInterfaceType, System.Threading.CancellationToken cancellationToken = default);
static member GetBaseOrInterfaceDeclarationReferenceAsync : Microsoft.CodeAnalysis.Editing.SymbolEditor * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ITypeSymbol * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
<Extension()>
Public Function GetBaseOrInterfaceDeclarationReferenceAsync (editor As SymbolEditor, symbol As ISymbol, baseOrInterfaceType As ITypeSymbol, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)
Parameters
- editor
- SymbolEditor
- symbol
- ISymbol
- baseOrInterfaceType
- ITypeSymbol
- cancellationToken
- CancellationToken
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.