// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Diagnostics;
usingSystem.Runtime.CompilerServices;
namespaceMicrosoft.CodeAnalysis
...
...
@@ -10,6 +9,15 @@ internal static class StackGuard
{
publicconstintMaxUncheckedRecursionDepth=20;
/// <summary>
/// Ensures that the remaining stack space is large enough to execute
/// the average function.
/// </summary>
/// <param name="recursionDepth">how many times the calling function has recursed</param>