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)) 201Return _statements 206_parser._pool.Free(_statements) 210Dim result = _statements.ToList() 212_statements.Clear() 222Return If(_statements.Count = 1, _statements(0), Nothing) 242Dim result = _statements.ToList(Of T)() 244_statements.Clear() 252If IsLargeEnoughNonEmptyStatementList(_statements) Then 254CodeAnalysis.Syntax.InternalSyntax.SyntaxList.List(CType(_statements, SyntaxListBuilder).ToArray)) 256_statements.Clear() 282Dim result = _statements.ToList(Of T)() 284_statements.Clear() 322If _statements.Count = 0 Then 326index = _statements.Count - 1 327stmt = _statements(index) 342_statements(index) = stmt
Parser\BlockContexts\PropertyBlockContext.vb (1)
38Dim accessors = _statements.ToList(Of AccessorBlockSyntax)()
Parser\BlockContexts\SingleLineElseContext.vb (2)
92If _statements.Count > 0 Then 120If _statements.Count > 0 Then
Parser\BlockContexts\SingleLineIfBlockContext.vb (2)
96Debug.Assert(_statements.Count > 0) 117If _statements.Count > 0 Then
Parser\BlockContexts\SingleLineLambdaContext.vb (3)
80If _statements.Count > 0 Then 81_statements(0) = Parser.ReportSyntaxError(_statements(0), ERRID.ERR_SubRequiresSingleStatement)