Skip to content

Commit

Permalink
Merge branch 'fawmnOverflow' of https://github.com/CyrusNajmabadi/roslyn
Browse files Browse the repository at this point in the history
 into fawmnOverflow
  • Loading branch information
CyrusNajmabadi committed Sep 28, 2022
2 parents cf119b0 + 5aa3df8 commit 573df10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ internal enum SourceGeneratorSyntaxTreeInfo

public partial struct SyntaxValueProvider
{
private static readonly ObjectPool<Stack<string>> s_stringStackPool = new(static () => new());
private static readonly ObjectPool<Stack<SyntaxNode>> s_nodeStackPool = new(static () => new());
private static readonly ObjectPool<Stack<string>> s_stringStackPool = new ObjectPool<Stack<string>>(static () => new Stack<string>());
private static readonly ObjectPool<Stack<SyntaxNode>> s_nodeStackPool = new ObjectPool<Stack<SyntaxNode>>(static () => new Stack<SyntaxNode>());

/// <summary>
/// Returns all syntax nodes of that match <paramref name="predicate"/> if that node has an attribute on it that
Expand Down

0 comments on commit 573df10

Please sign in to comment.