2 types derived from Stack
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
310 instantiations of Stack
ConfigurationSchemaGenerator (1)
DesignSurfaceExt (2)
dotnet-svcutil-lib (11)
Identity.DefaultUI.WebSite (1)
illink (15)
ILLink.Tasks (1)
InMemory.FunctionalTests (2)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Build (11)
Microsoft.Build.Tasks.Core (1)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (15)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp (9)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.Test.Utilities (3)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.DotNet.AsmDiff (4)
Microsoft.DotNet.PackageTesting (2)
Microsoft.DotNet.SharedFramework.Sdk (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (4)
Microsoft.DotNet.VersionTools (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.ML.Core (1)
Microsoft.ML.Data (2)
Microsoft.ML.TorchSharp (1)
Microsoft.VisualStudio.LanguageServices (1)
PresentationBuildTasks (2)
PresentationCore (10)
PresentationFramework (24)
ReachFramework (2)
RunTests (1)
Stress.ApiService (1)
System.CodeDom (1)
System.Collections (4)
System.Collections.Immutable (5)
System.ComponentModel.Composition (3)
System.Composition.Hosting (1)
System.Console (3)
System.Data.Common (2)
System.Formats.Asn1 (3)
System.Formats.Cbor (5)
System.Formats.Nrbf (1)
System.Formats.Tar (2)
System.Linq.Expressions (10)
System.Private.CoreLib.Generators (2)
System.Private.DataContractSerialization (2)
System.Private.Xml (22)
System.Text.Json (1)
System.Text.RegularExpressions (7)
System.Text.RegularExpressions.Generator (2)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (4)
System.Windows.Forms.Design (4)
System.Xaml (8)
xunit.console (1)
672 references to Stack
ConfigurationSchemaGenerator (1)
DesignSurfaceExt (2)
dotnet-svcutil-lib (12)
Identity.DefaultUI.WebSite (1)
illink (43)
Linker.Dataflow\MethodBodyScanner.cs (32)
61 private void CheckForInvalidStack (Stack<StackSlot> stack, int depthRequired, MethodBody method, int ilOffset)
71 private static void PushUnknown (Stack<StackSlot> stack)
76 private void PushUnknownAndWarnAboutInvalidIL (Stack<StackSlot> stack, MethodBody methodBody, int offset)
82 private StackSlot PopUnknown (Stack<StackSlot> stack, int count, MethodBody method, int ilOffset)
104 private static Stack<StackSlot> MergeStack (Stack<StackSlot> a, Stack<StackSlot> b)
116 Stack<StackSlot> newStack = new Stack<StackSlot> (a.Count);
117 Stack<StackSlot>.Enumerator aEnum = a.GetEnumerator ();
118 Stack<StackSlot>.Enumerator bEnum = b.GetEnumerator ();
127 private static void ClearStack (ref Stack<StackSlot>? stack)
132 private static void NewKnownStack (Dictionary<int, Stack<StackSlot>> knownStacks, int newOffset, Stack<StackSlot> newStack)
139 if (knownStacks.TryGetValue (newOffset, out Stack<StackSlot>? value)) {
283 Dictionary<int, Stack<StackSlot>> knownStacks = new Dictionary<int, Stack<StackSlot>> ();
284 Stack<StackSlot>? currentStack = new Stack<StackSlot> (methodBody.MaxStackSize);
293 if (knownStacks.TryGetValue (operation.Offset, out Stack<StackSlot>? knownValue)) {
703 private static void ScanExceptionInformation (Dictionary<int, Stack<StackSlot>> knownStacks, MethodIL methodIL)
706 Stack<StackSlot> catchStack = new Stack<StackSlot> (1);
723 private void ScanLdarg (Instruction operation, Stack<StackSlot> currentStack, MethodDefinition thisMethod)
744 Stack<StackSlot> currentStack,
760 Stack<StackSlot> currentStack,
782 void ScanLdtoken (Instruction operation, Stack<StackSlot> currentStack)
823 Stack<StackSlot> currentStack,
840 Stack<StackSlot> currentStack,
904 Stack<StackSlot> currentStack,
945 Stack<StackSlot> currentStack,
988 Stack<StackSlot> currentStack,
1084 Stack<StackSlot> currentStack,
1140 Stack<StackSlot> currentStack,
1162 Stack<StackSlot> currentStack,
ILLink.Tasks (1)
InMemory.FunctionalTests (5)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (12)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (3)
777var expected = new Stack<int>(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
778CanDeserialize_Collection<Stack<int>, Stack<int>, int>(expected);
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Server.IIS (5)
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http\HttpProtocol.cs (6)
43private Stack<KeyValuePair<Func<object, Task>, object>>? _onStarting;
44private Stack<KeyValuePair<Func<object, Task>, object>>? _onCompleted;
807var onStarting = _onStarting;
815static async Task ProcessEvents(HttpProtocol protocol, Stack<KeyValuePair<Func<object, Task>, object>> events)
835var onCompleted = _onCompleted;
843static async Task ProcessEvents(HttpProtocol protocol, Stack<KeyValuePair<Func<object, Task>, object>> events)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
12public static Task FireOnCompletedAsync(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>>? onCompleted)
22private static Task CompleteAsyncMayAwait(ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
43private static async Task CompleteAsyncAwaited(Task currentTask, ILogger logger, Stack<KeyValuePair<Func<object, Task>, object>> onCompleted)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.Build (23)
Microsoft.Build.Tasks.Core (1)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (31)
Microsoft.CodeAnalysis.CodeStyle (44)
Microsoft.CodeAnalysis.CSharp (12)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
52nameof(Stack<int>),
Microsoft.CodeAnalysis.CSharp.Features (8)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
52nameof(Stack<int>),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.Workspaces (60)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
Microsoft.DotNet.AsmDiff (4)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (4)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (8)
Microsoft.DotNet.VersionTools (1)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.ML.Core (2)
Microsoft.ML.Data (2)
Microsoft.ML.TorchSharp (1)
Microsoft.VisualStudio.LanguageServices (1)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (2)
PresentationCore (13)
PresentationFramework (37)
ReachFramework (6)
RunTests (1)
Shared.Tests (2)
Stress.ApiService (1)
System (1)
System.CodeDom (1)
System.Collections (9)
System.Collections.Immutable (41)
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (8)
47private SecurePooledObject<Stack<RefAsValueType<Node>>>? _stack;
76if (!SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryTake(this, out _stack))
78_stack = SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.PrepNew(this, new Stack<RefAsValueType<Node>>(root.Height));
123if (_stack != null && _stack.TryUse(ref this, out Stack<RefAsValueType<Node>>? stack))
126SecureObjectPool<Stack<RefAsValueType<Node>>, Enumerator>.TryAdd(this, _stack!);
143Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);
168Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);
211Stack<RefAsValueType<ImmutableSortedDictionary<TKey, TValue>.Node>> stack = _stack.Use(ref this);
System.ComponentModel.Composition (12)
System.Composition.Hosting (4)
System.Console (5)
System.Data.Common (1)
System.Formats.Asn1 (3)
System.Formats.Cbor (5)
System.Formats.Nrbf (4)
System.Formats.Tar (6)
System.Linq.Expressions (13)
System.Private.CoreLib.Generators (2)
System.Private.DataContractSerialization (2)
System.Private.Windows.Core (1)
System.Private.Xml (22)
System.Resources.Extensions (1)
System.Text.Json (5)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (9)
System.Text.RegularExpressions.Generator (2)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (7)
System.Windows.Forms.Design (6)
System.Xaml (14)
xunit.console (2)