Lowering\ClosureConversion\SynthesizedClosureMethod.cs (13)
28ClosureKind closureKind,
57case ClosureKind.Singleton: // all type parameters on method (except the top level method's)
58case ClosureKind.General: // only lambda's type parameters on method (rest on class)
66case ClosureKind.ThisOnly: // all type parameters on method
67case ClosureKind.Static:
156private static DeclarationModifiers MakeDeclarationModifiers(ClosureKind closureKind, MethodSymbol originalMethod)
158var mods = closureKind == ClosureKind.ThisOnly ? DeclarationModifiers.Private : DeclarationModifiers.Internal;
160if (closureKind == ClosureKind.Static)
178private static string MakeName(string topLevelMethodName, string localFunctionName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
183(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
189private static string MakeName(string topLevelMethodName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
196(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
234public ClosureKind ClosureKind { get; }