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)
1261Dim argumentBuilder = _pool.AllocateSeparated(Of SimpleArgumentSyntax)() 1297_pool.Free(argumentBuilder) 1391Dim arguments = _pool.AllocateSeparated(Of ArgumentSyntax)() 1469_pool.Free(arguments) 1869Dim variables As SeparatedSyntaxListBuilder(Of ExpressionSyntax) = Me._pool.AllocateSeparated(Of ExpressionSyntax)() 1883Me._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)
1930Dim kwList = _pool.Allocate(Of KeywordSyntax)() 2032_pool.Free(kwList) 2109Dim declarations = _pool.AllocateSeparated(Of VariableDeclaratorSyntax)() 2114Dim declarators = _pool.AllocateSeparated(Of ModifiedIdentifierSyntax)() 2167_pool.Free(declarators) 2171_pool.Free(declarations) 2369Dim expressions = _pool.AllocateSeparated(Of ExpressionSyntax)() 2391_pool.Free(expressions) 2467Dim expressions = _pool.AllocateSeparated(Of FieldInitializerSyntax)() 2491_pool.Free(expressions) 2899Dim elementBuilder = _pool.AllocateSeparated(Of TupleElementSyntax)() 2984_pool.Free(elementBuilder) 3107Dim typeNames = _pool.AllocateSeparated(Of TypeSyntax)() 3163_pool.Free(typeNames) 3199arrayModifiers = _pool.Allocate(Of ArrayRankSpecifierSyntax)() 3213_pool.Free(arrayModifiers) 3259arrayModifiers = _pool.Allocate(Of ArrayRankSpecifierSyntax)() 3286_pool.Free(arrayModifiers) 3292Dim builder = _pool.Allocate(Of PunctuationSyntax)() 3317_pool.Free(builder) 3322Dim separators = _pool.Allocate(Of PunctuationSyntax)() 3332_pool.Free(separators) 3341Dim arguments = _pool.AllocateSeparated(Of ArgumentSyntax)() 3385_pool.Free(arguments) 3454Me._pool.AllocateSeparated(Of QualifiedNameSyntax)() 3491Me._pool.Free(ImplementsClauses) 3504Dim handlesClauseItems As SeparatedSyntaxListBuilder(Of HandlesClauseItemSyntax) = Me._pool.AllocateSeparated(Of HandlesClauseItemSyntax)() 3575Me._pool.Free(handlesClauseItems) 4286Dim typeParameters = Me._pool.AllocateSeparated(Of TypeParameterSyntax)() 4339Dim constraints = Me._pool.AllocateSeparated(Of ConstraintSyntax)() 4362Me._pool.Free(constraints) 4402Me._pool.Free(typeParameters) 4476Dim parameters = _pool.AllocateSeparated(Of ParameterSyntax)() 4538_pool.Free(parameters) 4558Dim keywords = Me._pool.Allocate(Of KeywordSyntax)() 4605Me._pool.Free(keywords) 4699Dim importsClauses = Me._pool.AllocateSeparated(Of ImportsClauseSyntax)() 4718Me._pool.Free(importsClauses) 4856Dim typeNames = Me._pool.AllocateSeparated(Of TypeSyntax)() 4879Me._pool.Free(typeNames) 5429Dim attributeBlocks = _pool.Allocate(Of AttributeListSyntax)() 5430Dim attributes = _pool.AllocateSeparated(Of AttributeSyntax)() 5441_pool.Free(attributes) 5442_pool.Free(attributeBlocks) 5454Dim attributeBlocks = _pool.Allocate(Of AttributeListSyntax)() 5455Dim attributes = _pool.AllocateSeparated(Of AttributeSyntax)() 5565_pool.Free(attributes) 5566_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)
248Dim caseClauses = _pool.AllocateSeparated(Of CaseClauseSyntax)() 330_pool.Free(caseClauses) 722Dim variables = _pool.AllocateSeparated(Of ExpressionSyntax)() 759_pool.Free(variables) 853Dim names = _pool.AllocateSeparated(Of ModifiedIdentifierSyntax)() 858_pool.Free(names) 1284Dim clauses = _pool.AllocateSeparated(Of RedimClauseSyntax)() 1326_pool.Free(clauses) 1622Dim argumentsBuilder As SeparatedSyntaxListBuilder(Of ArgumentSyntax) = _pool.AllocateSeparated(Of ArgumentSyntax)() 1645_pool.Free(argumentsBuilder)
Parser\ParseXml.vb (27)
319Dim Content = Me._pool.Allocate(Of XmlNodeSyntax)() 360Me._pool.Free(Content) 610contexts.Push(New XmlContext(_pool, startElement)) 630contexts.Push(New XmlContext(_pool, startElement)) 657Dim textTokens = _pool.Allocate(Of XmlTextTokenSyntax)() 668_pool.Free(textTokens) 926Dim Attributes = Me._pool.Allocate(Of XmlNodeSyntax)() 949Me._pool.Free(Attributes) 1202Dim signatureTypes = _pool.AllocateSeparated(Of CrefSignaturePartSyntax)() 1223_pool.Free(signatureTypes) 1697Dim content = Me._pool.Allocate(Of XmlNodeSyntax)() 1717Me._pool.Free(content) 1742Dim Content = Me._pool.Allocate(Of XmlNodeSyntax)() 1772Dim textTokens = _pool.Allocate(Of XmlTextTokenSyntax)() 1783_pool.Free(textTokens) 1817Me._pool.Free(Content) 1851Dim values = _pool.Allocate(Of XmlTextTokenSyntax)() 1879_pool.Free(values) 1894Dim values = _pool.Allocate(Of XmlTextTokenSyntax)() 1905_pool.Free(values) 1919Dim values = _pool.Allocate(Of XmlTextTokenSyntax)() 1934_pool.Free(values) 1964Dim list = _pool.Allocate(Of XmlTextTokenSyntax)() 1977_pool.Free(list) 1993_pool.Free(list) 2016Dim skippedTokens = Me._pool.Allocate(Of SyntaxToken)() 2035Me._pool.Free(skippedTokens)