Share via


SymbolEditor.EditAllDeclarationsAsync Method

Definition

Overloads

EditAllDeclarationsAsync(ISymbol, SymbolEditor+AsyncDeclarationEditAction, CancellationToken)

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

EditAllDeclarationsAsync(ISymbol, SymbolEditor+DeclarationEditAction, CancellationToken)

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

EditAllDeclarationsAsync(ISymbol, SymbolEditor+AsyncDeclarationEditAction, CancellationToken)

Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol> EditAllDeclarationsAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Editing.SymbolEditor.AsyncDeclarationEditAction editAction, System.Threading.CancellationToken cancellationToken = default);
member this.EditAllDeclarationsAsync : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.Editing.SymbolEditor.AsyncDeclarationEditAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol>
Public Function EditAllDeclarationsAsync (symbol As ISymbol, editAction As SymbolEditor.AsyncDeclarationEditAction, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ISymbol)

Parameters

symbol
ISymbol

The symbol to be edited.

editAction
SymbolEditor.AsyncDeclarationEditAction

The action that makes edits to the declaration.

cancellationToken
CancellationToken

An optional CancellationToken.

Returns

The new symbol including the changes.

Applies to

EditAllDeclarationsAsync(ISymbol, SymbolEditor+DeclarationEditAction, CancellationToken)

Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs
Source:
SymbolEditor.cs

Enables editing all the symbol's declarations. Partial types and methods may have more than one declaration.

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol> EditAllDeclarationsAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Editing.SymbolEditor.DeclarationEditAction editAction, System.Threading.CancellationToken cancellationToken = default);
member this.EditAllDeclarationsAsync : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.Editing.SymbolEditor.DeclarationEditAction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.ISymbol>
Public Function EditAllDeclarationsAsync (symbol As ISymbol, editAction As SymbolEditor.DeclarationEditAction, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ISymbol)

Parameters

symbol
ISymbol

The symbol to be edited.

editAction
SymbolEditor.DeclarationEditAction

The action that makes edits to the declaration.

cancellationToken
CancellationToken

An optional CancellationToken.

Returns

The new symbol including the changes.

Applies to