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)
1263
Dim argumentBuilder =
_pool
.AllocateSeparated(Of SimpleArgumentSyntax)()
1299
_pool
.Free(argumentBuilder)
1393
Dim arguments =
_pool
.AllocateSeparated(Of ArgumentSyntax)()
1471
_pool
.Free(arguments)
1871
Dim variables As SeparatedSyntaxListBuilder(Of ExpressionSyntax) = Me.
_pool
.AllocateSeparated(Of ExpressionSyntax)()
1885
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)
1931
Dim kwList =
_pool
.Allocate(Of KeywordSyntax)()
2033
_pool
.Free(kwList)
2110
Dim declarations =
_pool
.AllocateSeparated(Of VariableDeclaratorSyntax)()
2115
Dim declarators =
_pool
.AllocateSeparated(Of ModifiedIdentifierSyntax)()
2168
_pool
.Free(declarators)
2172
_pool
.Free(declarations)
2370
Dim expressions =
_pool
.AllocateSeparated(Of ExpressionSyntax)()
2392
_pool
.Free(expressions)
2468
Dim expressions =
_pool
.AllocateSeparated(Of FieldInitializerSyntax)()
2492
_pool
.Free(expressions)
2900
Dim elementBuilder =
_pool
.AllocateSeparated(Of TupleElementSyntax)()
2985
_pool
.Free(elementBuilder)
3108
Dim typeNames =
_pool
.AllocateSeparated(Of TypeSyntax)()
3164
_pool
.Free(typeNames)
3200
arrayModifiers =
_pool
.Allocate(Of ArrayRankSpecifierSyntax)()
3214
_pool
.Free(arrayModifiers)
3260
arrayModifiers =
_pool
.Allocate(Of ArrayRankSpecifierSyntax)()
3287
_pool
.Free(arrayModifiers)
3293
Dim builder =
_pool
.Allocate(Of PunctuationSyntax)()
3318
_pool
.Free(builder)
3323
Dim separators =
_pool
.Allocate(Of PunctuationSyntax)()
3333
_pool
.Free(separators)
3342
Dim arguments =
_pool
.AllocateSeparated(Of ArgumentSyntax)()
3386
_pool
.Free(arguments)
3455
Me.
_pool
.AllocateSeparated(Of QualifiedNameSyntax)()
3492
Me.
_pool
.Free(ImplementsClauses)
3505
Dim handlesClauseItems As SeparatedSyntaxListBuilder(Of HandlesClauseItemSyntax) = Me.
_pool
.AllocateSeparated(Of HandlesClauseItemSyntax)()
3576
Me.
_pool
.Free(handlesClauseItems)
4287
Dim typeParameters = Me.
_pool
.AllocateSeparated(Of TypeParameterSyntax)()
4340
Dim constraints = Me.
_pool
.AllocateSeparated(Of ConstraintSyntax)()
4363
Me.
_pool
.Free(constraints)
4403
Me.
_pool
.Free(typeParameters)
4477
Dim parameters =
_pool
.AllocateSeparated(Of ParameterSyntax)()
4539
_pool
.Free(parameters)
4559
Dim keywords = Me.
_pool
.Allocate(Of KeywordSyntax)()
4606
Me.
_pool
.Free(keywords)
4700
Dim importsClauses = Me.
_pool
.AllocateSeparated(Of ImportsClauseSyntax)()
4719
Me.
_pool
.Free(importsClauses)
4857
Dim typeNames = Me.
_pool
.AllocateSeparated(Of TypeSyntax)()
4880
Me.
_pool
.Free(typeNames)
5430
Dim attributeBlocks =
_pool
.Allocate(Of AttributeListSyntax)()
5431
Dim attributes =
_pool
.AllocateSeparated(Of AttributeSyntax)()
5442
_pool
.Free(attributes)
5443
_pool
.Free(attributeBlocks)
5455
Dim attributeBlocks =
_pool
.Allocate(Of AttributeListSyntax)()
5456
Dim attributes =
_pool
.AllocateSeparated(Of AttributeSyntax)()
5566
_pool
.Free(attributes)
5567
_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)
249
Dim caseClauses =
_pool
.AllocateSeparated(Of CaseClauseSyntax)()
331
_pool
.Free(caseClauses)
723
Dim variables =
_pool
.AllocateSeparated(Of ExpressionSyntax)()
760
_pool
.Free(variables)
854
Dim names =
_pool
.AllocateSeparated(Of ModifiedIdentifierSyntax)()
859
_pool
.Free(names)
1285
Dim clauses =
_pool
.AllocateSeparated(Of RedimClauseSyntax)()
1327
_pool
.Free(clauses)
1623
Dim argumentsBuilder As SeparatedSyntaxListBuilder(Of ArgumentSyntax) =
_pool
.AllocateSeparated(Of ArgumentSyntax)()
1646
_pool
.Free(argumentsBuilder)
Parser\ParseXml.vb (27)
319
Dim Content = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
360
Me.
_pool
.Free(Content)
611
contexts.Push(New XmlContext(
_pool
, startElement))
631
contexts.Push(New XmlContext(
_pool
, startElement))
658
Dim textTokens =
_pool
.Allocate(Of XmlTextTokenSyntax)()
669
_pool
.Free(textTokens)
927
Dim Attributes = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
950
Me.
_pool
.Free(Attributes)
1203
Dim signatureTypes =
_pool
.AllocateSeparated(Of CrefSignaturePartSyntax)()
1224
_pool
.Free(signatureTypes)
1698
Dim content = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
1718
Me.
_pool
.Free(content)
1743
Dim Content = Me.
_pool
.Allocate(Of XmlNodeSyntax)()
1773
Dim textTokens =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1784
_pool
.Free(textTokens)
1818
Me.
_pool
.Free(Content)
1852
Dim values =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1880
_pool
.Free(values)
1895
Dim values =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1906
_pool
.Free(values)
1920
Dim values =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1935
_pool
.Free(values)
1965
Dim list =
_pool
.Allocate(Of XmlTextTokenSyntax)()
1978
_pool
.Free(list)
1994
_pool
.Free(list)
2017
Dim skippedTokens = Me.
_pool
.Allocate(Of SyntaxToken)()
2036
Me.
_pool
.Free(skippedTokens)