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)
65case ClosureKind.ThisOnly: // all type parameters on method
66case ClosureKind.Static:
153private static DeclarationModifiers MakeDeclarationModifiers(ClosureKind closureKind, MethodSymbol originalMethod)
155var mods = closureKind == ClosureKind.ThisOnly ? DeclarationModifiers.Private : DeclarationModifiers.Internal;
157if (closureKind == ClosureKind.Static)
175private static string MakeName(string topLevelMethodName, string localFunctionName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
180(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
186private static string MakeName(string topLevelMethodName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
193(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
231public ClosureKind ClosureKind { get; }