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())));
            }
Пример #2
0
 public DefaultCaseCodeAction(IDocument document, Roslyn.Compilers.CSharp.SwitchStatementSyntax switchNode)
 {
     this.document = document;
     this.switchNode = switchNode;
 }
Пример #3
0
 public DefaultCaseCodeAction(IDocument document, Roslyn.Compilers.CSharp.SwitchStatementSyntax switchNode)
 {
     this.document   = document;
     this.switchNode = switchNode;
 }