IfNode
class IfNode(val guard: AtomicExpressionNode, val thenBranch: BlockNode, val elseBranch: BlockNode, val sourceLocation: SourceLocation) : ControlNode
Executing statements conditionally.
Parameters
thenBranch
Statement to execute if the guard is true.
elseBranch
Statement to execute if the guard is false.
Constructors
Link copied to clipboard
fun IfNode(guard: AtomicExpressionNode, thenBranch: BlockNode, elseBranch: BlockNode, sourceLocation: SourceLocation)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a representation of this node in the surface syntax.
Properties
Extensions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns this node and all its descendants in post order.
Link copied to clipboard
Link copied to clipboard
A FreshNameGenerator that will avoid all Variable names in this node.
Link copied to clipboard