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)
67case ClosureKind.ThisOnly: // all type parameters on method
68case ClosureKind.Static:
157private static DeclarationModifiers MakeDeclarationModifiers(ClosureKind closureKind, MethodSymbol originalMethod)
159var mods = closureKind == ClosureKind.ThisOnly ? DeclarationModifiers.Private : DeclarationModifiers.Internal;
161if (closureKind == ClosureKind.Static)
179private static string MakeName(string topLevelMethodName, string localFunctionName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
184(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
190private static string MakeName(string topLevelMethodName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
197(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
235public ClosureKind ClosureKind { get; }