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)
183private static string MakeName(string topLevelMethodName, string localFunctionName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
188(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
194private static string MakeName(string topLevelMethodName, DebugId topLevelMethodId, ClosureKind closureKind, DebugId lambdaId)
201(closureKind == ClosureKind.General) ? -1 : topLevelMethodId.Ordinal,
239public ClosureKind ClosureKind { get; }