Open sandboxFocus

Method WithSimplifierAnnotation

WithSimplifierAnnotation<T>(T)

Marks a syntax node for simplification (e.g., removing unnecessary namespace qualifications from type names).

Declaration
public static T WithSimplifierAnnotation<T>(this T node) where T : SyntaxNode
Parameters
Type Name Description
T node

The node to mark.

Returns
Type Description
T

The node with the simplifier annotation.

Type Parameters
Name Description
T

The type of syntax node.