Skip to main content

CSharpFactory.GetAccessorDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
GetAccessorDeclaration(ArrowExpressionClauseSyntax)
GetAccessorDeclaration(BlockSyntax)
GetAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)
GetAccessorDeclaration(SyntaxTokenList, BlockSyntax)

GetAccessorDeclaration(ArrowExpressionClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)

Parameters

expressionBody ArrowExpressionClauseSyntax

Returns

AccessorDeclarationSyntax

GetAccessorDeclaration(BlockSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)

Parameters

body BlockSyntax

Returns

AccessorDeclarationSyntax

GetAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)

Parameters

modifiers SyntaxTokenList

expressionBody ArrowExpressionClauseSyntax

Returns

AccessorDeclarationSyntax

GetAccessorDeclaration(SyntaxTokenList, BlockSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)

Parameters

modifiers SyntaxTokenList

body BlockSyntax

Returns

AccessorDeclarationSyntax