2 references to ShouldEmit
Microsoft.CodeAnalysis.CSharp (2)
Compiler\MethodCompiler.cs (1)
1316if (_emitMethodBodies && (methodSymbol is not SynthesizedStaticConstructor cctor || cctor.ShouldEmit(processedInitializers.BoundInitializers)))
Symbols\MemberSymbolExtensions.cs (1)
471if (method is SynthesizedStaticConstructor cctor && !cctor.ShouldEmit())