7 references to Singleton
Microsoft.CodeAnalysis.CSharp (7)
Lowering\ClosureConversion\ClosureConversion.cs (6)
445closureKind = ClosureKind.Singleton; 1054if (closureKind == ClosureKind.Singleton) 1472Debug.Assert(closureKind == ClosureKind.Singleton); 1570if (closureKind == ClosureKind.Static || closureKind == ClosureKind.Singleton) 1672var shouldCacheForStaticMethod = closureKind == ClosureKind.Singleton && 1710var cacheField = new SynthesizedLambdaCacheFieldSymbol(translatedLambdaContainer, cacheVariableType, cacheVariableName, _topLevelMethod, isReadOnly: false, isStatic: closureKind == ClosureKind.Singleton);
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
57case ClosureKind.Singleton: // all type parameters on method (except the top level method's)