Implemented interface member:
property
IsAsync
Microsoft.CodeAnalysis.Symbols.IMethodSymbolInternal.IsAsync
20 overrides of IsAsync
Microsoft.CodeAnalysis.CSharp (20)
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\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
823public override bool IsAsync => false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
529public override bool IsAsync => false;
Symbols\ReducedExtensionMethodSymbol.cs (1)
411public override bool IsAsync
Symbols\SignatureOnlyMethodSymbol.cs (1)
147public override bool IsAsync { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
108public override bool IsAsync
Symbols\Source\LocalFunctionSymbol.cs (1)
363public override bool IsAsync => (_declarationModifiers & DeclarationModifiers.Async) != 0;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
695public sealed override bool IsAsync
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
158public override bool IsAsync
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
186public override bool IsAsync
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
281public 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\SynthesizedSealedPropertyAccessor.cs (1)
109public override bool IsAsync
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
245public override bool IsAsync
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
141public override bool IsAsync
326 references to IsAsync
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder_Await.cs (3)
95if ((object)call.Method != null && call.Method.IsAsync) 109|| !(containingMethod.IsAsync || containingMethod is SynthesizedSimpleProgramEntryPointSymbol)) 171if (method.IsAsync)
Binder\Binder_Expressions.cs (1)
3297&& ((MethodSymbol)containingSymbol).IsAsync
Binder\Binder_Statements.cs (2)
220if (method.IsAsync) 2948return (object)method != null && method.IsAsync;
Binder\ExecutableCodeBinder.cs (1)
161if (asyncInterface && !iterator.IsAsync)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3285if (lambda.Symbol.IsAsync)
BoundTree\UnboundLambda.cs (1)
156inferredReturnType = InferReturnType(returnTypes, node: this, Binder, delegateType, Symbol.IsAsync, conversions);
CodeGen\CodeGenerator.cs (1)
313if (_emitPdbSequencePoints && !_method.IsIterator && !_method.IsAsync)
Compilation\CSharpCompilation.cs (1)
2038if (candidate.IsAsync)
Compiler\MethodCompiler.cs (2)
1642isAsyncStateMachine = kickoffMethod.IsAsync; 1712Debug.Assert(method.IsAsync || method.IsIterator);
FlowAnalysis\DefiniteAssignment.cs (2)
410if (CurrentSymbol is MethodSymbol currentMethod && currentMethod.IsAsync && !currentMethod.IsImplicitlyDeclared) 1892if (parameter.RefKind == RefKind.Out && !(this.CurrentSymbol is MethodSymbol currentMethod && currentMethod.IsAsync)) // out parameters not allowed in async
FlowAnalysis\FlowAnalysisPass.cs (1)
200BoundStatement ret = (method.IsIterator && !method.IsAsync)
FlowAnalysis\NullableWalker.cs (2)
1403else if (CurrentSymbol is MethodSymbol { IsAsync: false }) 3158if (!method.IsAsync)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
213if (_F.CurrentFunction.IsAsync && _F.CurrentFunction.IsIterator)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
53if (!method.IsAsync)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
39=> !function.IsAsync && !function.IsIterator
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
162if (originalMethod.IsAsync)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
301var isStateMachine = _factory.CurrentFunction.IsAsync || _factory.CurrentFunction.IsIterator;
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
60if (elementType.IsDefault || method.IsAsync)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1039if (useKnownLength && elements.Length > 0 && _factory.CurrentFunction?.IsAsync == false)
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
29(node.Syntax.Kind() == SyntaxKind.Block && _factory.CurrentFunction?.IsAsync == false))))
Lowering\LocalRewriter\LocalRewriter_Yield.cs (1)
21(!node.WasCompilerGenerated || (node.Syntax.Kind() == SyntaxKind.Block && _factory.CurrentFunction?.IsAsync == false)))
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
523SynthesizedLocalKind.Spill => this.OriginalMethod.IsAsync, 524SynthesizedLocalKind.ForEachArray => this.OriginalMethod.IsAsync || this.OriginalMethod.IsIterator,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
521Debug.Assert(!method.IsIterator || !method.IsAsync); // an override handles async-iterators
Symbols\MethodSymbolExtensions.cs (5)
153return method.IsAsync && method.ReturnsVoid; 161return method.IsAsync 171return method.IsAsync 181return method.IsAsync 190return method.IsAsync
Symbols\PublicModel\MethodSymbol.cs (1)
238return _underlying.IsAsync;
Symbols\ReducedExtensionMethodSymbol.cs (1)
413get { return _reducedFrom.IsAsync; }
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1226method.IsAsync &&
Symbols\Source\SourceMethodSymbol.cs (1)
132bool isAsync = target.IsAsync;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
582if (IsAsync) 1520if (IsAsync)
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
145return UnderlyingMethod.IsAsync;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
959Assert.False(m2.IsAsync); 963Assert.True(m.IsAsync); 1126Assert.True(m.IsAsync); 2073Assert.True(m.IsAsync);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
134Assert.True(method.IsAsync); 137Assert.True(method.IsAsync);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\BindingAsyncTasklikeMoreTests.cs (8)
111Assert.True(method.IsAsync); 114Assert.True(method.IsAsync); 436Assert.True(method.IsAsync); 440Assert.True(method.IsAsync); 517Assert.True(method.IsAsync); 521Assert.True(method.IsAsync); 596Assert.True(method.IsAsync); 600Assert.True(method.IsAsync);
Semantics\BindingAsyncTasklikeTests.cs (4)
37Assert.True(methodf.IsAsync); 38Assert.True(methodg.IsAsync); 312Assert.True(methodf.IsAsync); 313Assert.True(methodg.IsAsync);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (265)
Symbols\DefaultInterfaceImplementationTests.cs (187)
206Assert.False(m1.IsAsync); 2697Assert.False(accessor.IsAsync); 6417Assert.False(accessor.IsAsync); 8441Assert.False(m01.IsAsync); 8453Assert.False(m02.IsAsync); 8465Assert.False(m03.IsAsync); 8477Assert.False(m04.IsAsync); 8489Assert.False(m05.IsAsync); 8501Assert.False(m06.IsAsync); 8513Assert.False(m07.IsAsync); 8525Assert.False(m08.IsAsync); 8537Assert.False(m09.IsAsync); 8549Assert.False(m10.IsAsync); 8561Assert.False(m11.IsAsync); 8573Assert.True(m12.IsAsync); 8585Assert.False(m13.IsAsync); 8794Assert.False(m1.IsAsync); 8833Assert.False(m1.IsAsync); 8896Assert.False(m1.IsAsync); 8981Assert.False(m1.IsAsync); 8994Assert.False(m2.IsAsync); 9007Assert.False(m3.IsAsync); 9063Assert.False(m1.IsAsync); 9121Assert.False(m1.IsAsync); 9134Assert.False(m2.IsAsync); 9147Assert.False(m3.IsAsync); 9372Assert.False(m1.IsAsync); 10100Assert.False(m1.IsAsync); 10150Assert.False(m1.IsAsync); 10231Assert.False(m1.IsAsync); 10245Assert.False(m2.IsAsync); 10259Assert.False(m3.IsAsync); 10273Assert.False(m4.IsAsync); 10339Assert.False(m2.IsAsync); 10393Assert.False(m1.IsAsync); 10407Assert.False(m2.IsAsync); 10421Assert.False(m3.IsAsync); 10435Assert.False(m4.IsAsync); 10449Assert.False(m5.IsAsync); 10619Assert.False(m1.IsAsync); 10633Assert.False(m2.IsAsync); 10739Assert.False(m1.IsAsync); 10753Assert.False(m2.IsAsync); 10767Assert.False(m3.IsAsync); 10781Assert.False(m4.IsAsync); 10795Assert.False(m5.IsAsync); 10847Assert.Equal(!(m is PEModuleSymbol), m1.IsAsync); 10910Assert.False(m1.IsAsync); 11074Assert.False(m1.IsAsync); 11088Assert.False(m2.IsAsync); 11105Assert.False(m2Impl.IsAsync); 11181Assert.False(m1.IsAsync); 11195Assert.False(m2.IsAsync); 11212Assert.False(m2Impl.IsAsync); 11811Assert.False(m1.IsAsync); 12667Assert.False(m1.IsAsync); 12755Assert.False(m1.IsAsync); 12843Assert.False(m1.IsAsync); 13137Assert.False(accessor.IsAsync); 13159Assert.False(p02get.IsAsync); 13180Assert.False(p03set.IsAsync); 13201Assert.False(p04get.IsAsync); 13222Assert.False(p05set.IsAsync); 13243Assert.False(p06get.IsAsync); 13264Assert.False(p07set.IsAsync); 13285Assert.False(p08get.IsAsync); 13306Assert.False(p09set.IsAsync); 13327Assert.False(p10get.IsAsync); 13351Assert.False(accessor.IsAsync); 13376Assert.False(accessor.IsAsync); 13401Assert.False(accessor.IsAsync); 13426Assert.False(accessor.IsAsync); 13451Assert.False(accessor.IsAsync); 13476Assert.False(accessor.IsAsync); 13498Assert.False(p17get.IsAsync); 13519Assert.False(p18get.IsAsync); 13933Assert.False(p1get.IsAsync); 14031Assert.False(accessor.IsAsync); 14104Assert.False(accessor.IsAsync); 14323Assert.False(accessor.IsAsync); 14413Assert.False(p1get.IsAsync); 14436Assert.False(p2set.IsAsync); 14459Assert.False(p3get.IsAsync); 14672Assert.False(accessor.IsAsync); 14755Assert.False(p1get.IsAsync); 14778Assert.False(p2get.IsAsync); 14804Assert.False(accessor.IsAsync); 14828Assert.False(p4get.IsAsync); 15031Assert.False(m1.IsAsync); 16224Assert.False(accessor.IsAsync); 16334Assert.False(p1get.IsAsync); 16360Assert.False(p2get.IsAsync); 16386Assert.False(p3set.IsAsync); 16632Assert.False(accessor.IsAsync); 16800Assert.False(p1get.IsAsync); 16826Assert.False(p2set.IsAsync); 16858Assert.False(accessor.IsAsync); 16885Assert.False(p4get.IsAsync); 16910Assert.False(p5set.IsAsync); 17043Assert.False(p1get.IsAsync); 17069Assert.False(p2get.IsAsync); 17098Assert.False(accessor.IsAsync); 17127Assert.False(accessor.IsAsync); 17153Assert.False(p5get.IsAsync); 17296Assert.False(accessor.IsAsync); 17323Assert.False(p2get.IsAsync); 17352Assert.False(accessor.IsAsync); 17382Assert.False(accessor.IsAsync); 17408Assert.False(p5get.IsAsync); 17505Assert.False(m1.IsAsync); 17789Assert.False(accessor.IsAsync); 18386Assert.False(m1.IsAsync); 19886Assert.False(m1.IsAsync); 20544Assert.False(accessor.IsAsync); 21614Assert.False(accessor.IsAsync); 21636Assert.False(p02get.IsAsync); 21657Assert.False(p03set.IsAsync); 21678Assert.False(p04get.IsAsync); 21699Assert.False(p05set.IsAsync); 21720Assert.False(p06get.IsAsync); 21741Assert.False(p07set.IsAsync); 21762Assert.False(p08get.IsAsync); 21783Assert.False(p09set.IsAsync); 21804Assert.False(p10get.IsAsync); 21828Assert.False(accessor.IsAsync); 21853Assert.False(accessor.IsAsync); 21878Assert.False(accessor.IsAsync); 21903Assert.False(accessor.IsAsync); 21928Assert.False(accessor.IsAsync); 21953Assert.False(accessor.IsAsync); 21975Assert.False(p17get.IsAsync); 21996Assert.False(p18get.IsAsync); 26859Assert.False(accessor.IsAsync); 26881Assert.False(p02get.IsAsync); 26902Assert.False(p03set.IsAsync); 26923Assert.False(p04get.IsAsync); 26944Assert.False(p05set.IsAsync); 26965Assert.False(p06get.IsAsync); 26986Assert.False(p07set.IsAsync); 27007Assert.False(p08get.IsAsync); 27028Assert.False(p09set.IsAsync); 27049Assert.False(p10get.IsAsync); 27075Assert.False(accessor.IsAsync); 27101Assert.False(accessor.IsAsync); 27659Assert.False(accessor.IsAsync); 27732Assert.False(accessor.IsAsync); 27833Assert.False(accessor.IsAsync); 28000Assert.False(accessor.IsAsync); 28027Assert.False(accessor.IsAsync); 28054Assert.False(accessor.IsAsync); 28162Assert.False(accessor.IsAsync); 28257Assert.False(accessor.IsAsync); 28284Assert.False(accessor.IsAsync); 28311Assert.False(accessor.IsAsync); 28338Assert.False(accessor.IsAsync); 28473Assert.False(m1.IsAsync); 29611Assert.False(accessor.IsAsync); 29726Assert.False(accessor.IsAsync); 29756Assert.False(accessor.IsAsync); 29786Assert.False(accessor.IsAsync); 30045Assert.False(accessor.IsAsync); 30139Assert.False(accessor.IsAsync); 30169Assert.False(accessor.IsAsync); 30199Assert.False(accessor.IsAsync); 30228Assert.False(accessor.IsAsync); 30257Assert.False(accessor.IsAsync); 30469Assert.False(accessor.IsAsync); 30499Assert.False(accessor.IsAsync); 30529Assert.False(accessor.IsAsync); 30558Assert.False(accessor.IsAsync); 30690Assert.False(accessor.IsAsync); 30720Assert.False(accessor.IsAsync); 30750Assert.False(accessor.IsAsync); 30780Assert.False(accessor.IsAsync); 30809Assert.False(accessor.IsAsync); 30910Assert.False(m1.IsAsync); 31252Assert.False(accessor.IsAsync); 33070Assert.False(m1.IsAsync); 33907Assert.False(m1.IsAsync); 34023Assert.NotEqual(m1 is PEMethodSymbol, m1.IsAsync); 44673Assert.False(cctor.IsAsync); 44771Assert.False(cctor.IsAsync); 51126Assert.False(m.IsAsync); 52049Assert.False(i2m1.IsAsync); 52172Assert.True(i2m1.IsAsync); 53765Assert.False(i2p1Get.IsAsync); 53782Assert.False(i2p1Set.IsAsync);
Symbols\ExtendedPartialMethodsTests.cs (6)
1266Assert.False(method.IsAsync); 1267Assert.True(method.PartialImplementationPart.IsAsync); 1290Assert.False(method.IsAsync); 1291Assert.True(method.PartialImplementationPart.IsAsync); 1322Assert.False(method.IsAsync); 1323Assert.True(method.PartialImplementationPart.IsAsync);
Symbols\StaticAbstractMembersInInterfacesTests.cs (72)
158Assert.False(m01.IsAsync); 170Assert.False(m02.IsAsync); 182Assert.False(m03.IsAsync); 194Assert.False(m04.IsAsync); 206Assert.False(m05.IsAsync); 218Assert.False(m06.IsAsync); 230Assert.False(m07.IsAsync); 242Assert.False(m08.IsAsync); 254Assert.False(m09.IsAsync); 266Assert.False(m10.IsAsync); 869Assert.False(m01.IsAsync); 979Assert.False(m01.IsAsync); 1009Assert.False(m01.IsAsync); 1051Assert.False(m01.IsAsync); 1066Assert.False(m01.IsAsync); 1144Assert.False(m01.IsAsync); 1181Assert.False(m01.IsAsync); 1218Assert.False(m01.IsAsync); 1265Assert.False(m01.IsAsync); 1280Assert.False(m01.IsAsync); 1316Assert.False(m01.IsAsync); 1331Assert.False(m01.IsAsync); 1371Assert.False(m01.IsAsync); 1386Assert.False(m01.IsAsync); 1429Assert.False(m01.IsAsync); 1444Assert.False(m01.IsAsync); 1484Assert.False(m01.IsAsync); 1499Assert.False(m01.IsAsync); 1542Assert.False(m01.IsAsync); 1557Assert.False(m01.IsAsync); 1825Assert.False(m01.IsAsync); 1837Assert.False(m02.IsAsync); 1849Assert.False(m03.IsAsync); 1861Assert.False(m04.IsAsync); 1873Assert.False(m05.IsAsync); 1885Assert.False(m06.IsAsync); 1897Assert.False(m07.IsAsync); 1909Assert.False(m08.IsAsync); 1921Assert.False(m09.IsAsync); 1933Assert.False(m10.IsAsync); 2633Assert.False(m01.IsAsync); 2645Assert.False(m02.IsAsync); 2657Assert.False(m03.IsAsync); 2669Assert.False(m04.IsAsync); 2681Assert.False(m05.IsAsync); 2693Assert.False(m06.IsAsync); 2705Assert.False(m07.IsAsync); 2717Assert.False(m08.IsAsync); 2729Assert.False(m09.IsAsync); 2741Assert.False(m10.IsAsync); 3361Assert.False(m01.IsAsync); 3373Assert.False(m02.IsAsync); 3385Assert.False(m03.IsAsync); 3397Assert.False(m04.IsAsync); 3409Assert.False(m05.IsAsync); 3421Assert.False(m06.IsAsync); 3433Assert.False(m07.IsAsync); 3445Assert.False(m08.IsAsync); 3457Assert.False(m09.IsAsync); 3469Assert.False(m10.IsAsync); 4128Assert.False(m01.IsAsync); 4141Assert.False(m01.IsAsync); 4154Assert.False(m01.IsAsync); 4374Assert.False(m01.IsAsync); 4387Assert.False(m01.IsAsync); 4400Assert.False(m01.IsAsync); 4560Assert.False(m01.IsAsync); 4573Assert.False(m01.IsAsync); 4586Assert.False(m01.IsAsync); 4800Assert.False(m01.IsAsync); 4813Assert.False(m01.IsAsync); 4826Assert.False(m01.IsAsync);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
69Assert.False(symbol.IsAsync);