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