IfNode
class IfNode(guard: AtomicExpressionNode, thenBranch: BlockNode, elseBranch: BlockNode, sourceLocation: SourceLocation) : ControlNode
Content copied to clipboard
Executing statements conditionally.
Parameters
thenBranch
Statement to execute if the guard is true.
elseBranch
Statement to execute if the guard is false.
Constructors
IfNode
Link copied to clipboard
fun IfNode(guard: AtomicExpressionNode, thenBranch: BlockNode, elseBranch: BlockNode, sourceLocation: SourceLocation)
Content copied to clipboard
Functions
toDocument
Link copied to clipboard
toDocumentWithMetadata
Link copied to clipboard
toSurfaceNode
Link copied to clipboard
Returns a representation of this node in the surface syntax.
Properties
elseBranch
Link copied to clipboard
guard
Link copied to clipboard
sourceLocation
Link copied to clipboard
thenBranch
Link copied to clipboard