SyntaxExtensions.BracesSpan Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
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
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
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
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
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
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