7 references to Singleton
Microsoft.CodeAnalysis.CSharp (7)
Lowering\ClosureConversion\ClosureConversion.cs (6)
445
closureKind = ClosureKind.
Singleton
;
1054
if (closureKind == ClosureKind.
Singleton
)
1472
Debug.Assert(closureKind == ClosureKind.
Singleton
);
1570
if (closureKind == ClosureKind.Static || closureKind == ClosureKind.
Singleton
)
1672
var shouldCacheForStaticMethod = closureKind == ClosureKind.
Singleton
&&
1710
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)