16 references to WithStatements
Microsoft.CodeAnalysis.VisualBasic (2)
Generated\Syntax.xml.Syntax.Generated.vb (2)
5416Return WithStatements(statements) 5429Return Me.WithStatements(Me.Statements.AddRange(items))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
SyntaxNodeExtensions.vb (1)
612Function(x As MethodBlockSyntax) x.WithStatements(statements),
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
105WithStatements(VisitList(ReplaceStatementsIfNeeded(node.Statements)))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Compilation\SemanticModelAPITests.vb (6)
1433Dim speculatedMethod = methodBlock.WithStatements(ifStatement.Statements) 1586Dim speculatedMethod = methodBlock.WithStatements(SyntaxFactory.SingletonList(Of StatementSyntax)(speculatedStatement)) 1603speculatedMethod = methodBlock.WithStatements(SyntaxFactory.SingletonList(Of StatementSyntax)(speculatedStatement)) 1619speculatedMethod = methodBlock.WithStatements(SyntaxFactory.SingletonList(Of StatementSyntax)(speculatedStatement)) 1664Dim speculatedMethod = methodBlock.WithStatements(SyntaxFactory.SingletonList(Of StatementSyntax)(speculatedStatement)) 1700Dim speculatedMethod = methodBlock.WithStatements(SyntaxFactory.SingletonList(Of StatementSyntax)(speculatedStatement))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
18935Dim withObj = objectUnderTest.WithSubOrFunctionStatement(objectUnderTest.SubOrFunctionStatement).WithStatements(objectUnderTest.Statements).WithEndSubOrFunctionStatement(objectUnderTest.EndSubOrFunctionStatement) 18944Dim withObj = objectUnderTest.WithSubOrFunctionStatement(objectUnderTest.SubOrFunctionStatement).WithStatements(objectUnderTest.Statements).WithEndSubOrFunctionStatement(objectUnderTest.EndSubOrFunctionStatement)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
475result = DirectCast(methodBlock, MethodBlockSyntax).WithStatements(SyntaxFactory.List(allStatements))
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
3258Return DirectCast(declaration, MethodBlockSyntax).WithStatements(list)
Simplification\Reducers\AbstractVisualBasicReducer.AbstractReductionRewriter.vb (1)
196Return VisitMethodBlockBase(node, Function(statements As SyntaxList(Of StatementSyntax)) node.WithStatements(statements))
SyntaxNodeExtensions.vb (1)
612Function(x As MethodBlockSyntax) x.WithStatements(statements),