Exemplo n.º 1
0
        public StatementContainer WithStatements(SyntaxList <StatementSyntax> statements)
        {
            if (IsBlock)
            {
                return(new StatementContainer(Block.WithStatements(statements)));
            }

            if (IsSwitchSection)
            {
                return(new StatementContainer(SwitchSection.WithStatements(statements)));
            }

            return(default(StatementContainer));
        }
Exemplo n.º 2
0
        public SyntaxNode NodeWithStatements(SyntaxList <StatementSyntax> statements)
        {
            if (IsBlock)
            {
                return(Block.WithStatements(statements));
            }

            if (IsSwitchSection)
            {
                return(SwitchSection.WithStatements(statements));
            }

            return(null);
        }
Exemplo n.º 3
0
        public StatementsInfo WithStatements(SyntaxList <StatementSyntax> statements)
        {
            if (IsInBlock)
            {
                return(new StatementsInfo(Block.WithStatements(statements)));
            }

            if (IsInSwitchSection)
            {
                return(new StatementsInfo(SwitchSection.WithStatements(statements)));
            }

            return(default(StatementsInfo));
        }
Exemplo n.º 4
0
 public IStatementContainer WithStatements(SyntaxList <StatementSyntax> statements)
 {
     return(new SwitchSectionStatementContainer(SwitchSection.WithStatements(statements)));
 }
Exemplo n.º 5
0
 public SyntaxNode NodeWithStatements(SyntaxList <StatementSyntax> statements)
 {
     return(SwitchSection.WithStatements(statements));
 }