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)
402Dim errorCodes = Me._pool.AllocateSeparated(Of IdentifierNameSyntax)() 444Me._pool.Free(errorCodes)
Parser\ParseExpression.vb (6)
1263Dim argumentBuilder = _pool.AllocateSeparated(Of SimpleArgumentSyntax)() 1299_pool.Free(argumentBuilder) 1393Dim arguments = _pool.AllocateSeparated(Of ArgumentSyntax)() 1471_pool.Free(arguments) 1871Dim variables As SeparatedSyntaxListBuilder(Of ExpressionSyntax) = Me._pool.AllocateSeparated(Of ExpressionSyntax)() 1885Me._pool.Free(variables)
Parser\ParseInterpolatedString.vb (5)
27Dim contentBuilder = _pool.Allocate(Of InterpolatedStringContentSyntax) 55skipped = _pool.Allocate(Of SyntaxToken) 82content = AddLeadingSyntax(content, _pool.ToListAndFree(skipped), ERRID.ERR_Syntax) 90doubleQuoteToken = AddLeadingSyntax(doubleQuoteToken, _pool.ToListAndFree(skipped), ERRID.ERR_Syntax) 95_pool.ToListAndFree(contentBuilder),
Parser\ParseQuery.vb (24)
52Dim RangeVariables = Me._pool.AllocateSeparated(Of ExpressionRangeVariableSyntax)() 77Me._pool.Free(RangeVariables) 240Dim RangeVariables = Me._pool.AllocateSeparated(Of AggregationRangeVariableSyntax)() 274Me._pool.Free(RangeVariables) 286Dim RangeVariables = Me._pool.AllocateSeparated(Of ExpressionRangeVariableSyntax)() 401Me._pool.Free(RangeVariables) 407Dim RangeVariables = Me._pool.AllocateSeparated(Of CollectionRangeVariableSyntax)() 518Me._pool.Free(RangeVariables) 652Dim rangeVariables = Me._pool.AllocateSeparated(Of ExpressionRangeVariableSyntax)() 655Me._pool.Free(rangeVariables) 672Dim rangeVariables = Me._pool.AllocateSeparated(Of AggregationRangeVariableSyntax)() 675Me._pool.Free(rangeVariables) 695Dim moreJoinsBuilder = _pool.Allocate(Of JoinClauseSyntax)() 718_pool.Free(moreJoinsBuilder) 860Dim Exprs = Me._pool.AllocateSeparated(Of JoinConditionSyntax)() 924Me._pool.Free(Exprs) 970Dim exprs = Me._pool.AllocateSeparated(Of OrderingSyntax)() 1005Me._pool.Free(exprs) 1176Dim operators = Me._pool.Allocate(Of QueryClauseSyntax)() 1182Me._pool.Free(operators) 1190Dim operators = Me._pool.Allocate(Of QueryClauseSyntax)() 1195Me._pool.Free(operators) 1207Dim moreOperators = Me._pool.Allocate(Of QueryClauseSyntax)() 1210Me._pool.Free(moreOperators)
Parser\Parser.vb (48)
1931Dim kwList = _pool.Allocate(Of KeywordSyntax)() 2033_pool.Free(kwList) 2110Dim declarations = _pool.AllocateSeparated(Of VariableDeclaratorSyntax)() 2115Dim declarators = _pool.AllocateSeparated(Of ModifiedIdentifierSyntax)() 2168_pool.Free(declarators) 2172_pool.Free(declarations) 2370Dim expressions = _pool.AllocateSeparated(Of ExpressionSyntax)() 2392_pool.Free(expressions) 2468Dim expressions = _pool.AllocateSeparated(Of FieldInitializerSyntax)() 2492_pool.Free(expressions) 2900Dim elementBuilder = _pool.AllocateSeparated(Of TupleElementSyntax)() 2985_pool.Free(elementBuilder) 3108Dim typeNames = _pool.AllocateSeparated(Of TypeSyntax)() 3164_pool.Free(typeNames) 3200arrayModifiers = _pool.Allocate(Of ArrayRankSpecifierSyntax)() 3214_pool.Free(arrayModifiers) 3260arrayModifiers = _pool.Allocate(Of ArrayRankSpecifierSyntax)() 3287_pool.Free(arrayModifiers) 3293Dim builder = _pool.Allocate(Of PunctuationSyntax)() 3318_pool.Free(builder) 3323Dim separators = _pool.Allocate(Of PunctuationSyntax)() 3333_pool.Free(separators) 3342Dim arguments = _pool.AllocateSeparated(Of ArgumentSyntax)() 3386_pool.Free(arguments) 3455Me._pool.AllocateSeparated(Of QualifiedNameSyntax)() 3492Me._pool.Free(ImplementsClauses) 3505Dim handlesClauseItems As SeparatedSyntaxListBuilder(Of HandlesClauseItemSyntax) = Me._pool.AllocateSeparated(Of HandlesClauseItemSyntax)() 3576Me._pool.Free(handlesClauseItems) 4287Dim typeParameters = Me._pool.AllocateSeparated(Of TypeParameterSyntax)() 4340Dim constraints = Me._pool.AllocateSeparated(Of ConstraintSyntax)() 4363Me._pool.Free(constraints) 4403Me._pool.Free(typeParameters) 4477Dim parameters = _pool.AllocateSeparated(Of ParameterSyntax)() 4539_pool.Free(parameters) 4559Dim keywords = Me._pool.Allocate(Of KeywordSyntax)() 4606Me._pool.Free(keywords) 4700Dim importsClauses = Me._pool.AllocateSeparated(Of ImportsClauseSyntax)() 4719Me._pool.Free(importsClauses) 4857Dim typeNames = Me._pool.AllocateSeparated(Of TypeSyntax)() 4880Me._pool.Free(typeNames) 5430Dim attributeBlocks = _pool.Allocate(Of AttributeListSyntax)() 5431Dim attributes = _pool.AllocateSeparated(Of AttributeSyntax)() 5442_pool.Free(attributes) 5443_pool.Free(attributeBlocks) 5455Dim attributeBlocks = _pool.Allocate(Of AttributeListSyntax)() 5456Dim attributes = _pool.AllocateSeparated(Of AttributeSyntax)() 5566_pool.Free(attributes) 5567_pool.Free(attributeBlocks)
Parser\ParseScan.vb (4)
266Dim skippedTokens = Me._pool.Allocate(Of SyntaxToken)() 271Me._pool.Free(skippedTokens) 280Dim skippedTokens = Me._pool.Allocate(Of SyntaxToken)() 298Me._pool.Free(skippedTokens)
Parser\ParseStatement.vb (10)
249Dim caseClauses = _pool.AllocateSeparated(Of CaseClauseSyntax)() 331_pool.Free(caseClauses) 723Dim variables = _pool.AllocateSeparated(Of ExpressionSyntax)() 760_pool.Free(variables) 854Dim names = _pool.AllocateSeparated(Of ModifiedIdentifierSyntax)() 859_pool.Free(names) 1285Dim clauses = _pool.AllocateSeparated(Of RedimClauseSyntax)() 1327_pool.Free(clauses) 1623Dim argumentsBuilder As SeparatedSyntaxListBuilder(Of ArgumentSyntax) = _pool.AllocateSeparated(Of ArgumentSyntax)() 1646_pool.Free(argumentsBuilder)
Parser\ParseXml.vb (27)
319Dim Content = Me._pool.Allocate(Of XmlNodeSyntax)() 360Me._pool.Free(Content) 611contexts.Push(New XmlContext(_pool, startElement)) 631contexts.Push(New XmlContext(_pool, startElement)) 658Dim textTokens = _pool.Allocate(Of XmlTextTokenSyntax)() 669_pool.Free(textTokens) 927Dim Attributes = Me._pool.Allocate(Of XmlNodeSyntax)() 950Me._pool.Free(Attributes) 1203Dim signatureTypes = _pool.AllocateSeparated(Of CrefSignaturePartSyntax)() 1224_pool.Free(signatureTypes) 1698Dim content = Me._pool.Allocate(Of XmlNodeSyntax)() 1718Me._pool.Free(content) 1743Dim Content = Me._pool.Allocate(Of XmlNodeSyntax)() 1773Dim textTokens = _pool.Allocate(Of XmlTextTokenSyntax)() 1784_pool.Free(textTokens) 1818Me._pool.Free(Content) 1852Dim values = _pool.Allocate(Of XmlTextTokenSyntax)() 1880_pool.Free(values) 1895Dim values = _pool.Allocate(Of XmlTextTokenSyntax)() 1906_pool.Free(values) 1920Dim values = _pool.Allocate(Of XmlTextTokenSyntax)() 1935_pool.Free(values) 1965Dim list = _pool.Allocate(Of XmlTextTokenSyntax)() 1978_pool.Free(list) 1994_pool.Free(list) 2017Dim skippedTokens = Me._pool.Allocate(Of SyntaxToken)() 2036Me._pool.Free(skippedTokens)