Skip to main content

SyntaxInfo.SingleLocalDeclarationStatementInfo Method

Containing Type: SyntaxInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
SingleLocalDeclarationStatementInfo(ExpressionSyntax)Creates a new SingleLocalDeclarationStatementInfo from the specified value.
SingleLocalDeclarationStatementInfo(LocalDeclarationStatementSyntax, Boolean)Creates a new SingleLocalDeclarationStatementInfo from the specified local declaration statement.
SingleLocalDeclarationStatementInfo(StatementSyntax, Boolean)Creates a new SingleLocalDeclarationStatementInfo from the specified statement.
SingleLocalDeclarationStatementInfo(VariableDeclarationSyntax, Boolean)Creates a new SingleLocalDeclarationStatementInfo from the specified variable declaration.

SingleLocalDeclarationStatementInfo(ExpressionSyntax)

Creates a new SingleLocalDeclarationStatementInfo from the specified value.

public static Roslynator.CSharp.Syntax.SingleLocalDeclarationStatementInfo SingleLocalDeclarationStatementInfo(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax value)

Parameters

value ExpressionSyntax

Returns

SingleLocalDeclarationStatementInfo

SingleLocalDeclarationStatementInfo(LocalDeclarationStatementSyntax, Boolean)

Creates a new SingleLocalDeclarationStatementInfo from the specified local declaration statement.

public static Roslynator.CSharp.Syntax.SingleLocalDeclarationStatementInfo SingleLocalDeclarationStatementInfo(Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax localDeclarationStatement, bool allowMissing = false)

Parameters

localDeclarationStatement LocalDeclarationStatementSyntax

allowMissing Boolean

Returns

SingleLocalDeclarationStatementInfo

SingleLocalDeclarationStatementInfo(StatementSyntax, Boolean)

Creates a new SingleLocalDeclarationStatementInfo from the specified statement.

public static Roslynator.CSharp.Syntax.SingleLocalDeclarationStatementInfo SingleLocalDeclarationStatementInfo(Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, bool allowMissing = false)

Parameters

statement StatementSyntax

allowMissing Boolean

Returns

SingleLocalDeclarationStatementInfo

SingleLocalDeclarationStatementInfo(VariableDeclarationSyntax, Boolean)

Creates a new SingleLocalDeclarationStatementInfo from the specified variable declaration.

public static Roslynator.CSharp.Syntax.SingleLocalDeclarationStatementInfo SingleLocalDeclarationStatementInfo(Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax variableDeclaration, bool allowMissing = false)

Parameters

variableDeclaration VariableDeclarationSyntax

allowMissing Boolean

Returns

SingleLocalDeclarationStatementInfo