135 references to _pool
Microsoft.CodeAnalysis.VisualBasic (135)
Parser\BlockContexts\BlockContext.vb (2)
91
_statements = _parser.
_pool
.Allocate(Of StatementSyntax)()
206
_parser.
_pool
.Free(_statements)
Parser\BlockContexts\CompilationUnitContext.vb (1)
29
_statements = _parser.
_pool
.Allocate(Of StatementSyntax)()
Parser\BlockContexts\IfBlockContext.vb (2)
25
_elseIfBlocks = _parser.
_pool
.Allocate(Of ElseIfBlockSyntax)()
84
_parser.
_pool
.Free(_elseIfBlocks)
Parser\BlockContexts\SelectBlockContext.vb (2)
26
_caseBlocks = _parser.
_pool
.Allocate(Of CaseBlockSyntax)()
94
_parser.
_pool
.Free(_caseBlocks)
Parser\BlockContexts\TryBlockContext.vb (2)
24
_catchParts = _parser.
_pool
.Allocate(Of CatchBlockSyntax)()
82
_parser.
_pool
.Free(_catchParts)
Parser\ParseConditional.vb (2)
402
Dim errorCodes = Me.
_pool
.AllocateSeparated(Of IdentifierNameSyntax)()
444
Me.
_pool
.Free(errorCodes)
Parser\ParseExpression.vb (6)
1261
Dim argumentBuilder =
_pool
.AllocateSeparated(Of SimpleArgumentSyntax)()
1297
_pool
.Free(argumentBuilder)
1391
Dim arguments =
_pool
.AllocateSeparated(Of ArgumentSyntax)()
1469
_pool
.Free(arguments)
1869
Dim variables As SeparatedSyntaxListBuilder(Of ExpressionSyntax) = Me.
_pool
.AllocateSeparated(Of ExpressionSyntax)()
1883
Me.
_pool
.Free(variables)
Parser\ParseInterpolatedString.vb (5)
27
Dim contentBuilder =
_pool
.Allocate(Of InterpolatedStringContentSyntax)
55
skipped =
_pool
.Allocate(Of SyntaxToken)
82
content = AddLeadingSyntax(content,
_pool
.ToListAndFree(skipped), ERRID.ERR_Syntax)
90
doubleQuoteToken = AddLeadingSyntax(doubleQuoteToken,
_pool
.ToListAndFree(skipped), ERRID.ERR_Syntax)
95
_pool
.ToListAndFree(contentBuilder),
Parser\ParseQuery.vb (24)
52
Dim RangeVariables = Me.
_pool
.AllocateSeparated(Of ExpressionRangeVariableSyntax)()
77
Me.
_pool
.Free(RangeVariables)
240
Dim RangeVariables = Me.
_pool
.AllocateSeparated(Of AggregationRangeVariableSyntax)()
274
Me.
_pool
.Free(RangeVariables)
286
Dim RangeVariables = Me.
_pool
.AllocateSeparated(Of ExpressionRangeVariableSyntax)()
401
Me.
_pool
.Free(RangeVariables)
407
Dim RangeVariables = Me.
_pool
.AllocateSeparated(Of CollectionRangeVariableSyntax)()
518
Me.
_pool
.Free(RangeVariables)
652
Dim rangeVariables = Me.
_pool
.AllocateSeparated(Of ExpressionRangeVariableSyntax)()
655
Me.
_pool
.Free(rangeVariables)
672
Dim rangeVariables = Me.
_pool
.AllocateSeparated(Of AggregationRangeVariableSyntax)()
675
Me.
_pool
.Free(rangeVariables)
695
Dim moreJoinsBuilder =
_pool
.Allocate(Of JoinClauseSyntax)()
718
_pool
.Free(moreJoinsBuilder)
860
Dim Exprs = Me.
_pool
.AllocateSeparated(Of JoinConditionSyntax)()
924
Me.
_pool
.Free(Exprs)
970
Dim exprs = Me.
_pool
.AllocateSeparated(Of OrderingSyntax)()
1005
Me.
_pool
.Free(exprs)
1176
Dim operators = Me.
_pool
.Allocate(Of QueryClauseSyntax)()
1182
Me.
_pool
.Free(operators)
1190
Dim operators = Me.
_pool
.Allocate(Of QueryClauseSyntax)()
1195
Me.
_pool
.Free(operators)
1207
Dim moreOperators = Me.
_pool
.Allocate(Of QueryClauseSyntax)()
1210
Me.
_pool
.Free(moreOperators)
Parser\Parser.vb (48)
1930
Dim kwList =
_pool
.Allocate(Of KeywordSyntax)()
2032
_pool
.Free(kwList)
2109
Dim declarations =
_pool
.AllocateSeparated(Of VariableDeclaratorSyntax)()
2114
Dim declarators =
_pool
.AllocateSeparated(Of ModifiedIdentifierSyntax)()
2167
_pool
.Free(declarators)
2171
_pool
.Free(declarations)
2369
Dim expressions =
_pool
.AllocateSeparated(Of ExpressionSyntax)()
2391
_pool
.Free(expressions)
2467
Dim expressions =
_pool
.AllocateSeparated(Of FieldInitializerSyntax)()
2491
_pool
.Free(expressions)
2899
Dim elementBuilder =
_pool
.AllocateSeparated(Of TupleElementSyntax)()
2984
_pool
.Free(elementBuilder)
3107
Dim typeNames =
_pool
.AllocateSeparated(Of TypeSyntax)()
3163
_pool
.Free(typeNames)
3199
arrayModifiers =
_pool
.Allocate(Of ArrayRankSpecifierSyntax)()
3213
_pool
.Free(arrayModifiers)
3259
arrayModifiers =
_pool
.Allocate(Of ArrayRankSpecifierSyntax)()
3286
_pool
.Free(arrayModifiers)
3292
Dim builder =
_pool
.Allocate(Of PunctuationSyntax)()
3317
_pool
.Free(builder)
3322
Dim separators =
_pool
.Allocate(Of PunctuationSyntax)()
3332
_pool
.Free(separators)
3341
Dim arguments =
_pool
.AllocateSeparated(Of ArgumentSyntax)()
3385
_pool
.Free(arguments)
3454
Me.
_pool
.AllocateSeparated(Of QualifiedNameSyntax)()
3491
Me.
_pool
.Free(ImplementsClauses)
3504
Dim handlesClauseItems As SeparatedSyntaxListBuilder(Of HandlesClauseItemSyntax) = Me.
_pool
.AllocateSeparated(Of HandlesClauseItemSyntax)()
3575
Me.
_pool
.Free(handlesClauseItems)
4286
Dim typeParameters = Me.
_pool
.AllocateSeparated(Of TypeParameterSyntax)()
4339
Dim constraints = Me.
_pool
.AllocateSeparated(Of ConstraintSyntax)()
4362
Me.
_pool
.Free(constraints)
4402
Me.
_pool
.Free(typeParameters)
4476
Dim parameters =
_pool
.AllocateSeparated(Of ParameterSyntax)()
4538
_pool
.Free(parameters)
4558
Dim keywords = Me.
_pool
.Allocate(Of KeywordSyntax)()
4605
Me.
_pool
.Free(keywords)
4699
Dim importsClauses = Me.
_pool
.AllocateSeparated(Of ImportsClauseSyntax)()
4718
Me.
_pool
.Free(importsClauses)
4856
Dim typeNames = Me.
_pool
.AllocateSeparated(Of TypeSyntax)()
4879
Me.
_pool
.Free(typeNames)
5429
Dim attributeBlocks =
_pool
.Allocate(Of AttributeListSyntax)()
5430
Dim attributes =
_pool
.AllocateSeparated(Of AttributeSyntax)()
5441
_pool
.Free(attributes)
5442
_pool
.Free(attributeBlocks)
5454
Dim attributeBlocks =
_pool
.Allocate(Of AttributeListSyntax)()
5455
Dim attributes =
_pool
.AllocateSeparated(Of AttributeSyntax)()
5565
_pool
.Free(attributes)
5566
_pool
.Free(attributeBlocks)
Parser\ParseScan.vb (4)
266
Dim skippedTokens = Me.
_pool
.Allocate(Of SyntaxToken)()
271
Me.
_pool
.Free(skippedTokens)
280
Dim skippedTokens = Me.
_pool
.Allocate(Of SyntaxToken)()
298
Me.
_pool
.Free(skippedTokens)
Parser\ParseStatement.vb (10)
248
Dim caseClauses =
_pool
.AllocateSeparated(Of CaseClauseSyntax)()
330
_pool
.Free(caseClauses)
722
Dim variables =
_pool
.AllocateSeparated(Of ExpressionSyntax)()
759
_pool
.Free(variables)
853
Dim names =
_pool
.AllocateSeparated(Of ModifiedIdentifierSyntax)()
858
_pool
.Free(names)
1284
Dim clauses =
_pool
.AllocateSeparated(Of RedimClauseSyntax)()
1326
_pool
.Free(clauses)
1622
Dim argumentsBuilder As SeparatedSyntaxListBuilder(Of ArgumentSyntax) =
_pool
.AllocateSeparated(Of ArgumentSyntax)()
1645
_pool
.Free(argumentsBuilder)
Parser\ParseXml.vb (27)
319
Dim Content = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
360
Me.
_pool
.Free(Content)
610
contexts.Push(New XmlContext(
_pool
, startElement))
630
contexts.Push(New XmlContext(
_pool
, startElement))
657
Dim textTokens =
_pool
.Allocate(Of XmlTextTokenSyntax)()
668
_pool
.Free(textTokens)
926
Dim Attributes = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
949
Me.
_pool
.Free(Attributes)
1202
Dim signatureTypes =
_pool
.AllocateSeparated(Of CrefSignaturePartSyntax)()
1223
_pool
.Free(signatureTypes)
1697
Dim content = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
1717
Me.
_pool
.Free(content)
1742
Dim Content = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
1772
Dim textTokens =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1783
_pool
.Free(textTokens)
1817
Me.
_pool
.Free(Content)
1851
Dim values =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1879
_pool
.Free(values)
1894
Dim values =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1905
_pool
.Free(values)
1919
Dim values =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1934
_pool
.Free(values)
1964
Dim list =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1977
_pool
.Free(list)
1993
_pool
.Free(list)
2016
Dim skippedTokens = Me.
_pool
.Allocate(Of SyntaxToken)()
2035
Me.
_pool
.Free(skippedTokens)