WithGeneratedCodeAnnotation(SyntaxToken, SyntaxAnnotation)
Declaration
public static SyntaxToken WithGeneratedCodeAnnotation(this SyntaxToken node, SyntaxAnnotation annotation)Parameters
| Type | Name | Description |
|---|---|---|
| SyntaxToken | node | |
| SyntaxAnnotation | annotation |
Returns
| Type | Description |
|---|---|
| SyntaxToken |
WithGeneratedCodeAnnotation<T>(T?, SyntaxAnnotation)
Declaration
public static T? WithGeneratedCodeAnnotation<T>(this T? node, SyntaxAnnotation annotation) where T : SyntaxNodeParameters
| Type | Name | Description |
|---|---|---|
| T | node | |
| SyntaxAnnotation | annotation |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
WithGeneratedCodeAnnotation(in SyntaxTrivia, SyntaxAnnotation)
Declaration
public static SyntaxTrivia WithGeneratedCodeAnnotation(this in SyntaxTrivia trivia, SyntaxAnnotation annotation)Parameters
| Type | Name | Description |
|---|---|---|
| SyntaxTrivia | trivia | |
| SyntaxAnnotation | annotation |
Returns
| Type | Description |
|---|---|
| SyntaxTrivia |