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