Skip to main content

SyntaxExtensions.BracesSpan Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
BracesSpan(ClassDeclarationSyntax)The absolute span of the braces, not including its leading and trailing trivia.
BracesSpan(EnumDeclarationSyntax)The absolute span of the braces, not including its leading and trailing trivia.
BracesSpan(InterfaceDeclarationSyntax)The absolute span of the braces, not including it leading and trailing trivia.
BracesSpan(NamespaceDeclarationSyntax)The absolute span of the braces, not including leading and trailing trivia.
BracesSpan(RecordDeclarationSyntax)The absolute span of the braces, not including its leading and trailing trivia.
BracesSpan(StructDeclarationSyntax)The absolute span of the braces, not including its leading and trailing trivia.

BracesSpan(ClassDeclarationSyntax)

The absolute span of the braces, not including its leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan BracesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration)

Parameters

classDeclaration ClassDeclarationSyntax

Returns

TextSpan

BracesSpan(EnumDeclarationSyntax)

The absolute span of the braces, not including its leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan BracesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.EnumDeclarationSyntax enumDeclaration)

Parameters

enumDeclaration EnumDeclarationSyntax

Returns

TextSpan

BracesSpan(InterfaceDeclarationSyntax)

The absolute span of the braces, not including it leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan BracesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.InterfaceDeclarationSyntax interfaceDeclaration)

Parameters

interfaceDeclaration InterfaceDeclarationSyntax

Returns

TextSpan

BracesSpan(NamespaceDeclarationSyntax)

The absolute span of the braces, not including leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan BracesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax namespaceDeclaration)

Parameters

namespaceDeclaration NamespaceDeclarationSyntax

Returns

TextSpan

BracesSpan(RecordDeclarationSyntax)

The absolute span of the braces, not including its leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan BracesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.RecordDeclarationSyntax recordDeclaration)

Parameters

recordDeclaration RecordDeclarationSyntax

Returns

TextSpan

BracesSpan(StructDeclarationSyntax)

The absolute span of the braces, not including its leading and trailing trivia.

public static Microsoft.CodeAnalysis.Text.TextSpan BracesSpan(this Microsoft.CodeAnalysis.CSharp.Syntax.StructDeclarationSyntax structDeclaration)

Parameters

structDeclaration StructDeclarationSyntax

Returns

TextSpan