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:
155private static DeclarationModifiers MakeDeclarationModifiers(ClosureKind closureKind, MethodSymbol originalMethod)
157var mods = closureKind == ClosureKind.ThisOnly ? DeclarationModifiers.Private : DeclarationModifiers.Internal;
159if (closureKind == ClosureKind.Static)
177private static string MakeName(string topLevelMethodName, string localFunctionName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
182(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
188private static string MakeName(string topLevelMethodName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
195(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
233public ClosureKind ClosureKind { get; }