17 references to IsRuntimeAsyncEnabledIn
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Await.cs (1)
303
var isRuntimeAsyncEnabled = Compilation.
IsRuntimeAsyncEnabledIn
(this.ContainingMemberOrLambda);
Binder\Binder_Invocation.cs (1)
269
if (IsInAsyncMethod() && Compilation.
IsRuntimeAsyncEnabledIn
(ContainingMemberOrLambda))
CodeGen\CodeGenerator.cs (3)
177
if (_method.IsAsync && _module.Compilation.
IsRuntimeAsyncEnabledIn
(_method))
329
&& _module.Compilation.
IsRuntimeAsyncEnabledIn
(_method)
334
(!_method.IsAsync || _module.Compilation.
IsRuntimeAsyncEnabledIn
(_method)))
Compiler\MethodCompiler.cs (2)
780
if (compilationState.Compilation.
IsRuntimeAsyncEnabledIn
(method))
1603
if (compilationState.Compilation.
IsRuntimeAsyncEnabledIn
(method))
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
445
if (_F.Compilation.
IsRuntimeAsyncEnabledIn
(_F.CurrentFunction))
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
220
internal override bool GenerateDebugInfo => !this.IsAsync || DeclaringCompilation.
IsRuntimeAsyncEnabledIn
(this);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
302
var isStateMachine = (currentFunction.IsAsync && !_factory.Compilation.
IsRuntimeAsyncEnabledIn
(currentFunction))
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
27
var isRuntimeAsync = currentFunction is not null && _compilation.
IsRuntimeAsyncEnabledIn
(currentFunction);
Lowering\LocalRewriter\LocalRewriter_Yield.cs (1)
23
var isRuntimeAsync = currentFunction is not null && _compilation.
IsRuntimeAsyncEnabledIn
(currentFunction);
Symbols\Source\SourceMethodSymbol.cs (1)
173
if (!compilation.
IsRuntimeAsyncEnabledIn
(target))
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1767
if (this.IsAsync && this.DeclaringCompilation.
IsRuntimeAsyncEnabledIn
(this))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
655
return DeclaringCompilation.
IsRuntimeAsyncEnabledIn
(this);
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
414
Debug.Assert(!compilation.
IsRuntimeAsyncEnabledIn
(this));
528
Debug.Assert(!compilation.
IsRuntimeAsyncEnabledIn
(this));