Implemented interface member:
property
IsAsync
Microsoft.CodeAnalysis.Symbols.IMethodSymbolInternal.IsAsync
25 overrides of IsAsync
Microsoft.CodeAnalysis.CSharp (25)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
135public override bool IsAsync
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
74public sealed override bool IsAsync
Symbols\ErrorMethodSymbol.cs (1)
74public override bool IsAsync
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
67public sealed override bool IsAsync => _originalMethod.IsAsync;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
823public override bool IsAsync => false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
549public override bool IsAsync => false;
Symbols\NativeIntegerTypeSymbol.cs (1)
369public override bool IsAsync => UnderlyingMethod.IsAsync;
Symbols\ReducedExtensionMethodSymbol.cs (1)
412public override bool IsAsync
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
129public override bool IsAsync => _underlyingMethod.IsAsync;
Symbols\SignatureOnlyMethodSymbol.cs (1)
147public override bool IsAsync { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
112public override bool IsAsync
Symbols\Source\LocalFunctionSymbol.cs (1)
387public override bool IsAsync => (_declarationModifiers & DeclarationModifiers.Async) != 0;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
687public sealed override bool IsAsync
Symbols\SubstitutedMethodSymbol.cs (1)
174public override bool IsAsync => OriginalDefinition.IsAsync;
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (1)
46public override bool IsAsync => this.UnderlyingMethod.IsAsync;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
161public override bool IsAsync
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
188public override bool IsAsync
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
283public override bool IsAsync
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
171public sealed override bool IsAsync
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
228public sealed override bool IsAsync
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
79public override bool IsAsync
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
209public override bool IsAsync
Symbols\Synthesized\SynthesizedPropertySymbol.cs (1)
88public override bool IsAsync => false;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
109public override bool IsAsync
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
247public override bool IsAsync
50 references to IsAsync
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Await.cs (3)
99if ((object)call.Method != null && call.Method.IsAsync) 113|| !(containingMethod.IsAsync || containingMethod is SynthesizedSimpleProgramEntryPointSymbol)) 175if (method.IsAsync)
Binder\Binder_Expressions.cs (1)
3371&& ((MethodSymbol)containingSymbol).IsAsync
Binder\Binder_Statements.cs (2)
220if (method.IsAsync) 2983return (object)method != null && method.IsAsync;
Binder\ExecutableCodeBinder.cs (1)
161if (asyncInterface && !iterator.IsAsync)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3307if (lambda.Symbol.IsAsync)
BoundTree\UnboundLambda.cs (1)
166inferredReturnType = InferReturnType(returnTypes, node: this, Binder, delegateType, Symbol.IsAsync, conversions);
CodeGen\CodeGenerator.cs (3)
177if (_method.IsAsync && _module.Compilation.IsRuntimeAsyncEnabledIn(_method)) 328|| (_method.IsAsync 334(!_method.IsAsync || _module.Compilation.IsRuntimeAsyncEnabledIn(_method)))
Compilation\CSharpCompilation.cs (2)
358if (symbol is not MethodSymbol { IsAsync: true } method) 2112if (candidate.IsAsync)
Compiler\MethodCompiler.cs (2)
1683isAsyncStateMachine = kickoffMethod.IsAsync; 1753Debug.Assert(method.IsAsync || method.IsIterator);
FlowAnalysis\DefiniteAssignment.cs (1)
1844if (parameter.RefKind == RefKind.Out && !(this.CurrentSymbol is MethodSymbol currentMethod && currentMethod.IsAsync)) // out parameters not allowed in async
FlowAnalysis\FlowAnalysisPass.cs (1)
203BoundStatement ret = (method.IsIterator && !method.IsAsync)
FlowAnalysis\NullableWalker.cs (2)
1439else if (CurrentSymbol is MethodSymbol { IsAsync: false }) 3214if (!method.IsAsync)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
250if (_F.CurrentFunction.IsAsync && _F.CurrentFunction.IsIterator)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
53if (!method.IsAsync)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
22if (!method.IsAsync)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
39=> !function.IsAsync && !function.IsIterator
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
165if (originalMethod.IsAsync)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
302var isStateMachine = (currentFunction.IsAsync && !_factory.Compilation.IsRuntimeAsyncEnabledIn(currentFunction))
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
60if (elementType.IsDefault || method.IsAsync)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1180if (useKnownLength && elements.Length > 0 && _factory.CurrentFunction?.IsAsync == false)
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
32(node.Syntax.Kind() == SyntaxKind.Block && (currentFunction?.IsAsync == false || isRuntimeAsync)))))
Lowering\LocalRewriter\LocalRewriter_Yield.cs (1)
25(!node.WasCompilerGenerated || (node.Syntax.Kind() == SyntaxKind.Block && (currentFunction?.IsAsync == false || isRuntimeAsync))))
Lowering\StateMachineRewriter\RefInitializationHoister.cs (2)
80SynthesizedLocalKind.Spill => this._originalMethod.IsAsync, 81SynthesizedLocalKind.ForEachArray => this._originalMethod.IsAsync || this._originalMethod.IsIterator,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
525Debug.Assert(!method.IsIterator || !method.IsAsync); // an override handles async-iterators
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
67public sealed override bool IsAsync => _originalMethod.IsAsync;
Symbols\MethodSymbolExtensions.cs (5)
153return method.IsAsync && method.ReturnsVoid; 161return method.IsAsync 171return method.IsAsync 181return method.IsAsync 190return method.IsAsync
Symbols\NativeIntegerTypeSymbol.cs (1)
369public override bool IsAsync => UnderlyingMethod.IsAsync;
Symbols\PublicModel\MethodSymbol.cs (1)
252return _underlying.IsAsync;
Symbols\ReducedExtensionMethodSymbol.cs (1)
414get { return _reducedFrom.IsAsync; }
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
129public override bool IsAsync => _underlyingMethod.IsAsync;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1269method.IsAsync &&
Symbols\Source\SourceMethodSymbol.cs (1)
172bool isAsync = target.IsAsync;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
585if (IsAsync) 1536if (IsAsync) 1771if (this.IsAsync && this.DeclaringCompilation.IsRuntimeAsyncEnabledIn(this))
Symbols\SubstitutedMethodSymbol.cs (1)
174public override bool IsAsync => OriginalDefinition.IsAsync;
Symbols\Synthesized\SynthesizedCollectionBuilderProjectedMethodSymbol.cs (1)
46public override bool IsAsync => this.UnderlyingMethod.IsAsync;