Ejemplo n.º 1
0
 public BoundGotoStatement(BoundLabel label)
 {
     Label = label;
 }
Ejemplo n.º 2
0
 public BoundWhileStatement(BoundExpression condition, BoundStatement body, BoundLabel bodyLabel, BoundLabel breakLabel, BoundLabel continueLabel)
     : base(body, bodyLabel, breakLabel, continueLabel)
 {
     Condition = condition;
 }
Ejemplo n.º 3
0
 protected BoundLoopStatement(BoundLabel breakLabel, BoundLabel continueLabel)
 {
     BreakLabel    = breakLabel;
     ContinueLabel = continueLabel;
 }
Ejemplo n.º 4
0
 public BoundBeginTryStatement(BoundLabel errorLabel)
 {
     ErrorLabel = errorLabel;
 }
Ejemplo n.º 5
0
 public BoundLabelStatement(BoundLabel label, bool isValid) : base(isValid)
 {
     Label = label;
 }
Ejemplo n.º 6
0
 public BoundDoWhileStatement(BoundStatement body, BoundExpression condition, BoundLabel breakLabel, BoundLabel continueLabel) : base(breakLabel, continueLabel)
 {
     Body          = body;
     Condition     = condition;
     BreakLabel    = breakLabel;
     ContinueLabel = continueLabel;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 9
0
            public override void VisitLabel(BoundLabel node)
            {
                _labels.Add(node.Statement, node.Label);

                base.VisitLabel(node);
            }
Ejemplo n.º 10
0
 public virtual void VisitLabel(BoundLabel node)
 {
     DefaultVisit(node);
 }
Ejemplo n.º 11
0
 private void OutputLabel(BoundLabel node, string prefix)
 {
     builder.AddFragment(new OutputFragment(prefix, DefaultColour));
     builder.AddFragment(new OutputFragment("#" + node.Label.Name, LabelColour));
 }
Ejemplo n.º 12
0
 protected BoundLoopStatement(BoundStatement body, BoundLabel bodyLabel, BoundLabel breakLabel, BoundLabel continueLabel)
 {
     Body          = body;
     BodyLabel     = bodyLabel;
     BreakLabel    = breakLabel;
     ContinueLabel = continueLabel;
 }
Ejemplo n.º 13
0
 public BoundGotoStatement(BoundLabel boundLabel)
 {
     BoundLabel = boundLabel;
 }
Ejemplo n.º 14
0
 /// <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;
 }
Ejemplo n.º 15
0
 protected virtual BoundLabel RewriteLabelStatement(BoundLabel statement)
 {
     return(statement);
 }
Ejemplo n.º 16
0
        public override BoundNode VisitLabel(BoundLabel node)
        {
            Debug.Assert(true, "we should not have label expressions at this stage");

            return node;
        }
Ejemplo n.º 17
0
 private void EmitLabel(BoundLabel node)
 {
     _labels.Add(node.Statement, node.Label);
     EmitStatement(node.Statement);
 }