Skip to main content

SyntaxInfo.SimpleIfStatementInfo Method

Containing Type: SyntaxInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
SimpleIfStatementInfo(IfStatementSyntax, Boolean, Boolean)Creates a new SimpleIfStatementInfo from the specified if statement.
SimpleIfStatementInfo(SyntaxNode, Boolean, Boolean)Creates a new SimpleIfStatementInfo from the specified node.

SimpleIfStatementInfo(IfStatementSyntax, Boolean, Boolean)

Creates a new SimpleIfStatementInfo from the specified if statement.

public static Roslynator.CSharp.Syntax.SimpleIfStatementInfo SimpleIfStatementInfo(Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax ifStatement, bool walkDownParentheses = true, bool allowMissing = false)

Parameters

ifStatement IfStatementSyntax

walkDownParentheses Boolean

allowMissing Boolean

Returns

SimpleIfStatementInfo

SimpleIfStatementInfo(SyntaxNode, Boolean, Boolean)

Creates a new SimpleIfStatementInfo from the specified node.

public static Roslynator.CSharp.Syntax.SimpleIfStatementInfo SimpleIfStatementInfo(Microsoft.CodeAnalysis.SyntaxNode node, bool walkDownParentheses = true, bool allowMissing = false)

Parameters

node SyntaxNode

walkDownParentheses Boolean

allowMissing Boolean

Returns

SimpleIfStatementInfo