Open sandboxFocus

Method RewriteAspectTargetsAsync

RewriteAspectTargetsAsync(CSharpSyntaxRewriter, CancellationToken)

Rewrites the syntax nodes targeted by aspects using a thread-safe CSharpSyntaxRewriter.

Declaration
public Task RewriteAspectTargetsAsync(CSharpSyntaxRewriter rewriter, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CSharpSyntaxRewriter rewriter

A CSharpSyntaxRewriter whose Visit method is invoked for all declarations that are the target of aspects handled by the current IAspectWeaver (see AspectInstances). In case of partial classes or methods, the Visit method is invoked for each partial declaration.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task