Class IfExpressionSyntax
Represents Luau's if expression.
Inheritance
System.Object
IfExpressionSyntax
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 IfExpressionSyntax : ExpressionSyntax
Properties
|
Improve this Doc
View Source
Condition
Declaration
public ExpressionSyntax Condition { get; }
Property Value
|
Improve this Doc
View Source
ElseIfClauses
Declaration
public SyntaxList<ElseIfExpressionClauseSyntax> ElseIfClauses { get; }
Property Value
|
Improve this Doc
View Source
ElseKeyword
Declaration
public SyntaxToken ElseKeyword { get; }
Property Value
|
Improve this Doc
View Source
FalseValue
The value that will be returned if none of the previous conditions are true.
Declaration
public ExpressionSyntax FalseValue { get; }
Property Value
|
Improve this Doc
View Source
IfKeyword
Declaration
public SyntaxToken IfKeyword { get; }
Property Value
|
Improve this Doc
View Source
ThenKeyword
Declaration
public SyntaxToken ThenKeyword { get; }
Property Value
|
Improve this Doc
View Source
TrueValue
The value that will be returned if condition is true.
Declaration
public ExpressionSyntax TrueValue { 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
AddElseIfClauses(ElseIfExpressionClauseSyntax[])
Declaration
public IfExpressionSyntax AddElseIfClauses(params ElseIfExpressionClauseSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
Update(SyntaxToken, ExpressionSyntax, SyntaxToken, ExpressionSyntax, SyntaxList<ElseIfExpressionClauseSyntax>, SyntaxToken, ExpressionSyntax)
Declaration
public IfExpressionSyntax Update(SyntaxToken ifKeyword, ExpressionSyntax condition, SyntaxToken thenKeyword, ExpressionSyntax trueValue, SyntaxList<ElseIfExpressionClauseSyntax> elseIfClauses, SyntaxToken elseKeyword, ExpressionSyntax falseValue)
Parameters
Returns
|
Improve this Doc
View Source
WithCondition(ExpressionSyntax)
Declaration
public IfExpressionSyntax WithCondition(ExpressionSyntax condition)
Parameters
Returns
|
Improve this Doc
View Source
WithElseIfClauses(SyntaxList<ElseIfExpressionClauseSyntax>)
Declaration
public IfExpressionSyntax WithElseIfClauses(SyntaxList<ElseIfExpressionClauseSyntax> elseIfClauses)
Parameters
Returns
|
Improve this Doc
View Source
WithElseKeyword(SyntaxToken)
Declaration
public IfExpressionSyntax WithElseKeyword(SyntaxToken elseKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithFalseValue(ExpressionSyntax)
Declaration
public IfExpressionSyntax WithFalseValue(ExpressionSyntax falseValue)
Parameters
Returns
|
Improve this Doc
View Source
WithIfKeyword(SyntaxToken)
Declaration
public IfExpressionSyntax WithIfKeyword(SyntaxToken ifKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithThenKeyword(SyntaxToken)
Declaration
public IfExpressionSyntax WithThenKeyword(SyntaxToken thenKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithTrueValue(ExpressionSyntax)
Declaration
public IfExpressionSyntax WithTrueValue(ExpressionSyntax trueValue)
Parameters
Returns
Implements
IFormattable
Extension Methods