2 instantiations of ImmutableStack
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableStack_1.cs (2)
27private static readonly ImmutableStack<T> s_EmptyField = new ImmutableStack<T>(); 141return new ImmutableStack<T>(value, this);
89 references to ImmutableStack
Microsoft.AspNetCore.Components.Endpoints (7)
FormMapping\Converters\CollectionAdapters\ImmutableStackBufferAdapter.cs (4)
10: ArrayPoolBufferAdapter<ImmutableStack<TElement>, ImmutableStackBufferAdapter<TElement>.ImmutableStackFactory, TElement> 12internal class ImmutableStackFactory : ICollectionFactory<ImmutableStack<TElement>, TElement> 14public static ImmutableStack<TElement> ToResultCore(TElement[] buffer, int size) 26ImmutableStack<TElement>,
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
61var _ when type == (typeof(ImmutableStack<TElement>)) => true, 159var _ when type.IsAssignableTo(typeof(ImmutableStack<TElement>)) => 160new CollectionConverter<ImmutableStack<TElement>, ImmutableStackBufferAdapter<TElement>, ImmutableStackBufferAdapter<TElement>.PooledBuffer, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Binding\FormDataMapperTests.cs (5)
849var expected = ImmutableStack.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 850CanDeserialize_Collection<ImmutableStack<int>, ImmutableStack<int>, int>(expected); 881var expected = ImmutableStack.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 882CanDeserialize_Collection<IImmutableStack<int>, ImmutableStack<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (7)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableStackBufferAdapter.cs (4)
10: ArrayPoolBufferAdapter<ImmutableStack<TElement>, ImmutableStackBufferAdapter<TElement>.ImmutableStackFactory, TElement> 12internal class ImmutableStackFactory : ICollectionFactory<ImmutableStack<TElement>, TElement> 14public static ImmutableStack<TElement> ToResultCore(TElement[] buffer, int size) 26ImmutableStack<TElement>,
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
61var _ when type == (typeof(ImmutableStack<TElement>)) => true, 159var _ when type.IsAssignableTo(typeof(ImmutableStack<TElement>)) => 160new CollectionConverter<ImmutableStack<TElement>, ImmutableStackBufferAdapter<TElement>, ImmutableStackBufferAdapter<TElement>.PooledBuffer, TElement>(elementTypeConverter),
Microsoft.CodeAnalysis.CSharp (3)
Parser\Blender.cs (2)
19private readonly ImmutableStack<TextChangeRange> _changes; 86ImmutableStack<TextChangeRange> changes,
Parser\Blender.Reader.cs (1)
19private ImmutableStack<TextChangeRange> _changes;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
62nameof(ImmutableStack<int>),
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
62nameof(ImmutableStack<int>),
Microsoft.CodeAnalysis.VisualBasic (8)
Scanner\Directives.vb (8)
270Private ReadOnly _conditionals As ImmutableStack(Of ConditionalState) 271Private ReadOnly _regionDirectives As ImmutableStack(Of RegionDirectiveTriviaSyntax) 282conditionals As ImmutableStack(Of ConditionalState), 283regionDirectives As ImmutableStack(Of RegionDirectiveTriviaSyntax), 306Friend ReadOnly Property ConditionalStack As ImmutableStack(Of ConditionalState) 312Private Function WithConditionals(conditionals As ImmutableStack(Of ConditionalState)) As PreprocessorState 316Friend ReadOnly Property RegionDirectiveStack As ImmutableStack(Of RegionDirectiveTriviaSyntax) 328Private Function WithRegions(regions As ImmutableStack(Of RegionDirectiveTriviaSyntax)) As PreprocessorState
Microsoft.DotNet.Helix.Sdk (4)
LoggerExtensions.cs (4)
17private static readonly AsyncLocal<ImmutableStack<string>> s_localCategoryStack = new AsyncLocal<ImmutableStack<string>>(); 19private static ImmutableStack<string> CategoryStack 21get => s_localCategoryStack.Value ?? ImmutableStack<string>.Empty;
System.Collections.Immutable (52)
System\Collections\Immutable\ImmutableQueue.cs (6)
55ImmutableStack<T> forwards = ImmutableStack.Create(e.Current); 56ImmutableStack<T> backwards = ImmutableStack<T>.Empty; 93ImmutableStack<T> forwards = ImmutableStack<T>.Empty; 100return new ImmutableQueue<T>(forwards: forwards, backwards: ImmutableStack<T>.Empty);
System\Collections\Immutable\ImmutableQueue_1.cs (11)
28private static readonly ImmutableQueue<T> s_EmptyField = new ImmutableQueue<T>(ImmutableStack<T>.Empty, ImmutableStack<T>.Empty); 33private readonly ImmutableStack<T> _backwards; 38private readonly ImmutableStack<T> _forwards; 43private ImmutableStack<T>? _backwardsReversed; 50internal ImmutableQueue(ImmutableStack<T> forwards, ImmutableStack<T> backwards) 107private ImmutableStack<T> BackwardsReversed 160return new ImmutableQueue<T>(ImmutableStack.Create(value), ImmutableStack<T>.Empty); 192ImmutableStack<T> f = _forwards.Pop(); 203return new ImmutableQueue<T>(this.BackwardsReversed, ImmutableStack<T>.Empty);
System\Collections\Immutable\ImmutableQueue_1.Enumerator.cs (4)
25private ImmutableStack<T>? _remainingForwardsStack; 31private ImmutableStack<T>? _remainingBackwardsStack; 114private ImmutableStack<T>? _remainingForwardsStack; 120private ImmutableStack<T>? _remainingBackwardsStack;
System\Collections\Immutable\ImmutableStack.cs (12)
10/// A set of initialization methods for instances of <see cref="ImmutableStack{T}"/>. 19public static ImmutableStack<T> Create<T>() 21return ImmutableStack<T>.Empty; 30public static ImmutableStack<T> Create<T>(T item) 32return ImmutableStack<T>.Empty.Push(item); 41public static ImmutableStack<T> CreateRange<T>(IEnumerable<T> items) 45ImmutableStack<T> stack = ImmutableStack<T>.Empty; 60public static ImmutableStack<T> Create<T>(params T[] items) 73public static ImmutableStack<T> Create<T>(params ReadOnlySpan<T> items) 75ImmutableStack<T> stack = ImmutableStack<T>.Empty;
System\Collections\Immutable\ImmutableStack_1.cs (13)
27private static readonly ImmutableStack<T> s_EmptyField = new ImmutableStack<T>(); 37private readonly ImmutableStack<T>? _tail; 40/// Initializes a new instance of the <see cref="ImmutableStack{T}"/> class 48/// Initializes a new instance of the <see cref="ImmutableStack{T}"/> class. 52private ImmutableStack(T head, ImmutableStack<T> tail) 63public static ImmutableStack<T> Empty 75public ImmutableStack<T> Clear() 139public ImmutableStack<T> Push(T value) 159public ImmutableStack<T> Pop() 177public ImmutableStack<T> Pop(out T value) 232internal ImmutableStack<T> Reverse() 234ImmutableStack<T> r = this.Clear(); 235for (ImmutableStack<T> f = this; !f.IsEmpty; f = f.Pop())
System\Collections\Immutable\ImmutableStack_1.Enumerator.cs (6)
20private readonly ImmutableStack<T> _originalStack; 25private ImmutableStack<T>? _remainingStack; 31internal Enumerator(ImmutableStack<T> stack) 84private readonly ImmutableStack<T> _originalStack; 89private ImmutableStack<T>? _remainingStack; 100internal EnumeratorObject(ImmutableStack<T> stack)
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
91public INamedTypeSymbol? ImmutableStackType => GetOrResolveType(typeof(ImmutableStack<>), ref _ImmutableStackType);