2 writes to _statements
Microsoft.CodeAnalysis.VisualBasic (2)
Parser\BlockContexts\BlockContext.vb (1)
91
_statements
= _parser._pool.Allocate(Of StatementSyntax)()
Parser\BlockContexts\CompilationUnitContext.vb (1)
29
_statements
= _parser._pool.Allocate(Of StatementSyntax)()
26 references to _statements
Microsoft.CodeAnalysis.VisualBasic (26)
Parser\BlockContexts\BlockContext.vb (18)
196
_statements
.Add(DirectCast(node, StatementSyntax))
201
Return
_statements
206
_parser._pool.Free(
_statements
)
210
Dim result =
_statements
.ToList()
212
_statements
.Clear()
222
Return If(
_statements
.Count = 1,
_statements
(0), Nothing)
242
Dim result =
_statements
.ToList(Of T)()
244
_statements
.Clear()
252
If IsLargeEnoughNonEmptyStatementList(
_statements
) Then
254
CodeAnalysis.Syntax.InternalSyntax.SyntaxList.List(CType(
_statements
, SyntaxListBuilder).ToArray))
256
_statements
.Clear()
282
Dim result =
_statements
.ToList(Of T)()
284
_statements
.Clear()
322
If
_statements
.Count = 0 Then
326
index =
_statements
.Count - 1
327
stmt =
_statements
(index)
342
_statements
(index) = stmt
Parser\BlockContexts\PropertyBlockContext.vb (1)
38
Dim accessors =
_statements
.ToList(Of AccessorBlockSyntax)()
Parser\BlockContexts\SingleLineElseContext.vb (2)
92
If
_statements
.Count > 0 Then
120
If
_statements
.Count > 0 Then
Parser\BlockContexts\SingleLineIfBlockContext.vb (2)
96
Debug.Assert(
_statements
.Count > 0)
117
If
_statements
.Count > 0 Then
Parser\BlockContexts\SingleLineLambdaContext.vb (3)
80
If
_statements
.Count > 0 Then
81
_statements
(0) = Parser.ReportSyntaxError(
_statements
(0), ERRID.ERR_SubRequiresSingleStatement)