Class IfStatementSyntax
Represents an if statement.
Inheritance
System.Object
IfStatementSyntax
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Loretta.CodeAnalysis.Lua.dll
Syntax
public sealed class IfStatementSyntax : StatementSyntax
Properties
|
Improve this Doc
View Source
Body
Declaration
public StatementListSyntax Body { get; }
Property Value
|
Improve this Doc
View Source
Condition
Declaration
public ExpressionSyntax Condition { get; }
Property Value
|
Improve this Doc
View Source
ElseClause
Declaration
public ElseClauseSyntax ElseClause { get; }
Property Value
|
Improve this Doc
View Source
ElseIfClauses
Declaration
public SyntaxList<ElseIfClauseSyntax> ElseIfClauses { get; }
Property Value
|
Improve this Doc
View Source
EndKeyword
Declaration
public SyntaxToken EndKeyword { get; }
Property Value
|
Improve this Doc
View Source
IfKeyword
Declaration
public SyntaxToken IfKeyword { get; }
Property Value
|
Improve this Doc
View Source
SemicolonToken
The semicolon at the end of the statement (if any).
Declaration
public override SyntaxToken SemicolonToken { get; }
Property Value
Overrides
|
Improve this Doc
View Source
ThenKeyword
Declaration
public SyntaxToken ThenKeyword { get; }
Property Value
Methods
|
Improve this Doc
View Source
Accept(LuaSyntaxVisitor)
Declaration
public override void Accept(LuaSyntaxVisitor visitor)
Parameters
Overrides
|
Improve this Doc
View Source
Accept<TResult>(LuaSyntaxVisitor<TResult>)
Declaration
public override TResult Accept<TResult>(LuaSyntaxVisitor<TResult> visitor)
Parameters
Returns
Type Parameters
Overrides
Loretta.CodeAnalysis.Lua.LuaSyntaxNode.Accept<TResult>(Loretta.CodeAnalysis.Lua.LuaSyntaxVisitor<TResult>)
|
Improve this Doc
View Source
AddBodyStatements(StatementSyntax[])
Declaration
public IfStatementSyntax AddBodyStatements(params StatementSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
AddElseIfClauses(ElseIfClauseSyntax[])
Declaration
public IfStatementSyntax AddElseIfClauses(params ElseIfClauseSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
Update(SyntaxToken, ExpressionSyntax, SyntaxToken, StatementListSyntax, SyntaxList<ElseIfClauseSyntax>, ElseClauseSyntax, SyntaxToken, SyntaxToken)
Declaration
public IfStatementSyntax Update(SyntaxToken ifKeyword, ExpressionSyntax condition, SyntaxToken thenKeyword, StatementListSyntax body, SyntaxList<ElseIfClauseSyntax> elseIfClauses, ElseClauseSyntax elseClause, SyntaxToken endKeyword, SyntaxToken semicolonToken)
Parameters
Returns
|
Improve this Doc
View Source
WithBody(StatementListSyntax)
Declaration
public IfStatementSyntax WithBody(StatementListSyntax body)
Parameters
Returns
|
Improve this Doc
View Source
WithCondition(ExpressionSyntax)
Declaration
public IfStatementSyntax WithCondition(ExpressionSyntax condition)
Parameters
Returns
|
Improve this Doc
View Source
WithElseClause(ElseClauseSyntax)
Declaration
public IfStatementSyntax WithElseClause(ElseClauseSyntax elseClause)
Parameters
Returns
|
Improve this Doc
View Source
WithElseIfClauses(SyntaxList<ElseIfClauseSyntax>)
Declaration
public IfStatementSyntax WithElseIfClauses(SyntaxList<ElseIfClauseSyntax> elseIfClauses)
Parameters
Returns
|
Improve this Doc
View Source
WithEndKeyword(SyntaxToken)
Declaration
public IfStatementSyntax WithEndKeyword(SyntaxToken endKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithIfKeyword(SyntaxToken)
Declaration
public IfStatementSyntax WithIfKeyword(SyntaxToken ifKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithSemicolonToken(SyntaxToken)
Declaration
public IfStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken)
Parameters
Returns
|
Improve this Doc
View Source
WithThenKeyword(SyntaxToken)
Declaration
public IfStatementSyntax WithThenKeyword(SyntaxToken thenKeyword)
Parameters
Returns
Implements
IFormattable
Extension Methods