private static void WriteLabelStatement(BoundLabelStatement node, IndentedTextWriter writer) { var unindent = writer.Indent > 0; if (unindent) { writer.Indent--; } writer.WritePunctuation(node.Label.Name); writer.WritePunctuation(SyntaxKind.ColonToken); writer.WriteLine(); if (unindent) { writer.Indent++; } }
protected virtual BoundStatement RewriteLabelStatement(BoundLabelStatement node) { return(node); }
public static BoundConditionalGotoStatement GotoIf(BoundLabelStatement label, BoundExpression condition, bool jumpIfTrue) { return(new BoundConditionalGotoStatement(label.Label, condition, jumpIfTrue)); }
public static BoundConditionalGotoStatement GotoFalse(BoundLabelStatement label, BoundExpression condition) => GotoIf(label, condition, jumpIfTrue: false);
public static BoundGotoStatement Goto(BoundLabelStatement label) { return(new BoundGotoStatement(label.Label)); }