public BoundGotoStatement(BoundLabel label) { Label = label; }
public BoundWhileStatement(BoundExpression condition, BoundStatement body, BoundLabel bodyLabel, BoundLabel breakLabel, BoundLabel continueLabel) : base(body, bodyLabel, breakLabel, continueLabel) { Condition = condition; }
protected BoundLoopStatement(BoundLabel breakLabel, BoundLabel continueLabel) { BreakLabel = breakLabel; ContinueLabel = continueLabel; }
public BoundBeginTryStatement(BoundLabel errorLabel) { ErrorLabel = errorLabel; }
public BoundLabelStatement(BoundLabel label, bool isValid) : base(isValid) { Label = label; }
public BoundDoWhileStatement(BoundStatement body, BoundExpression condition, BoundLabel breakLabel, BoundLabel continueLabel) : base(breakLabel, continueLabel) { Body = body; Condition = condition; BreakLabel = breakLabel; ContinueLabel = continueLabel; }
public BoundForStatement(BoundExpression initializer, BoundExpression condition, BoundExpression loop, BoundStatement body, BoundLabel breakLabel, BoundLabel continueLabel) : base(breakLabel, continueLabel) { this.Initializer = initializer; this.Condition = condition; this.Loop = loop; this.Body = body; }
public BoundForStatement(BoundStatement variable, BoundExpression condition, BoundExpression action, BoundStatement body, BoundLabel breakLabel, BoundLabel continueLabel) : base(breakLabel, continueLabel) { Variable = variable; Condition = condition; Action = action; Body = body; }
public override void VisitLabel(BoundLabel node) { _labels.Add(node.Statement, node.Label); base.VisitLabel(node); }
public virtual void VisitLabel(BoundLabel node) { DefaultVisit(node); }
private void OutputLabel(BoundLabel node, string prefix) { builder.AddFragment(new OutputFragment(prefix, DefaultColour)); builder.AddFragment(new OutputFragment("#" + node.Label.Name, LabelColour)); }
protected BoundLoopStatement(BoundStatement body, BoundLabel bodyLabel, BoundLabel breakLabel, BoundLabel continueLabel) { Body = body; BodyLabel = bodyLabel; BreakLabel = breakLabel; ContinueLabel = continueLabel; }
public BoundGotoStatement(BoundLabel boundLabel) { BoundLabel = boundLabel; }
/// <summary> /// Initializes a new instance of the <see cref="BoundConditionalGotoStatement"/> class. /// </summary> /// <param name="label">The label.</param> /// <param name="condition">The condition.</param> /// <param name="jumpIfTrue">Whether to jump on true, or on false.</param> public BoundConditionalGotoStatement(BoundLabel label, BoundExpression condition, bool jumpIfTrue = true) { Label = label; Condition = condition; JumpIfTrue = jumpIfTrue; }
protected virtual BoundLabel RewriteLabelStatement(BoundLabel statement) { return(statement); }
public override BoundNode VisitLabel(BoundLabel node) { Debug.Assert(true, "we should not have label expressions at this stage"); return node; }
private void EmitLabel(BoundLabel node) { _labels.Add(node.Statement, node.Label); EmitStatement(node.Statement); }