From 5aa3df8547ad8f7a31cd1c91f20154ce7ffd8c3e Mon Sep 17 00:00:00 2001 From: CyrusNajmabadi Date: Tue, 27 Sep 2022 17:41:39 -0700 Subject: [PATCH] Update src/Compilers/Core/Portable/SourceGeneration/Nodes/SyntaxValueProvider_ForAttributeWithSimpleName.cs --- .../Nodes/SyntaxValueProvider_ForAttributeWithSimpleName.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compilers/Core/Portable/SourceGeneration/Nodes/SyntaxValueProvider_ForAttributeWithSimpleName.cs b/src/Compilers/Core/Portable/SourceGeneration/Nodes/SyntaxValueProvider_ForAttributeWithSimpleName.cs index c5e83ce4def23..860d6d8cf0af7 100644 --- a/src/Compilers/Core/Portable/SourceGeneration/Nodes/SyntaxValueProvider_ForAttributeWithSimpleName.cs +++ b/src/Compilers/Core/Portable/SourceGeneration/Nodes/SyntaxValueProvider_ForAttributeWithSimpleName.cs @@ -28,8 +28,8 @@ internal enum SourceGeneratorSyntaxTreeInfo public partial struct SyntaxValueProvider { - private static readonly ObjectPool> s_stringStackPool = new(static () => new()); - private static readonly ObjectPool> s_nodeStackPool = new(static () => new()); + private static readonly ObjectPool> s_stringStackPool = new ObjectPool>(static () => new Stack()); + private static readonly ObjectPool> s_nodeStackPool = new ObjectPool>(static () => new Stack()); /// /// Returns all syntax nodes of that match if that node has an attribute on it that