public override SyntaxNode VisitContinueStatement(VBS.ContinueStatementSyntax node) { if (node.BlockKeyword.IsKind(VB.SyntaxKind.ForKeyword)) { SyntaxNode parent = node.Parent; while (node != null) { if (parent.IsKind(VB.SyntaxKind.ForEachBlock)) { break; } if (parent.IsKind(VB.SyntaxKind.ForBlock)) { if (parent == this._vbFor) { HasContinueFor = true; var vbLabel = VB.SyntaxFactory.IdentifierLabel(Label); return(VB.SyntaxFactory.GoToStatement(vbLabel)); } else { } break; } parent = parent.Parent; } } return(base.VisitContinueStatement(node)); }
public override SyntaxList <StatementSyntax> VisitContinueStatement(VBSyntax.ContinueStatementSyntax node) { return(SingleStatement(SyntaxFactory.ContinueStatement())); }
public override SyntaxList <StatementSyntax> VisitContinueStatement(VBSyntax.ContinueStatementSyntax node) => AddLocalVariables(node);
public override Task <SyntaxList <StatementSyntax> > VisitContinueStatement(VBSyntax.ContinueStatementSyntax node) => AddLocalVariablesAsync(node);