public override VB.SeparatedSyntaxList <VB.StatementSyntax> VisitSwitchStatement(CS.SwitchStatementSyntax node)
            {
                var begin = VB.Syntax.SelectStatement(
                    expression: nodeVisitor.VisitExpression(node.Expression));

                return(SeparatedList <VB.StatementSyntax>(
                           VB.Syntax.SelectBlock(
                               begin,
                               StatementTerminator(),
                               List(node.Sections.Select(nodeVisitor.Visit <VB.CaseBlockSyntax>)),
                               VB.Syntax.EndSelectStatement())));
            }
Ejemplo n.º 2
0
 public DefaultCaseCodeAction(IDocument document, Roslyn.Compilers.CSharp.SwitchStatementSyntax switchNode)
 {
     this.document = document;
     this.switchNode = switchNode;
 }
Ejemplo n.º 3
0
 public DefaultCaseCodeAction(IDocument document, Roslyn.Compilers.CSharp.SwitchStatementSyntax switchNode)
 {
     this.document   = document;
     this.switchNode = switchNode;
 }