Implemented interface member:
property
IsAsync
Microsoft.CodeAnalysis.Symbols.IMethodSymbolInternal.IsAsync
23 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)
807public override bool IsAsync => false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
501public override bool IsAsync => false;
Symbols\ReducedExtensionMethodSymbol.cs (1)
403public override bool IsAsync
Symbols\SignatureOnlyMethodSymbol.cs (1)
139public override bool IsAsync { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
104public override bool IsAsync
Symbols\Source\LocalFunctionSymbol.cs (1)
323public override bool IsAsync => (_declarationModifiers & DeclarationModifiers.Async) != 0;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
560public 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)
273public override bool IsAsync
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
171public 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)
208public 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
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (3)
Symbols\EEMethodSymbol.cs (1)
319public override bool IsAsync
Symbols\PlaceholderMethodSymbol.cs (1)
85public override bool IsAsync
Symbols\SynthesizedContextMethodSymbol.cs (1)
65public override bool IsAsync
321 references to IsAsync
Microsoft.CodeAnalysis.CSharp (37)
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)
3029&& ((MethodSymbol)containingSymbol).IsAsync
Binder\Binder_Statements.cs (2)
221if (method.IsAsync) 2833return (object)method != null && method.IsAsync;
Binder\ExecutableCodeBinder.cs (1)
152if (asyncInterface && !iterator.IsAsync)
CodeGen\CodeGenerator.cs (1)
313if (_emitPdbSequencePoints && !_method.IsIterator && !_method.IsAsync)
Compilation\CSharpCompilation.cs (1)
1853if (candidate.IsAsync)
Compiler\MethodCompiler.cs (2)
1570isAsyncStateMachine = kickoffMethod.IsAsync; 1643Debug.Assert(method.IsAsync || method.IsIterator);
FlowAnalysis\DefiniteAssignment.cs (2)
402if (CurrentSymbol is MethodSymbol currentMethod && currentMethod.IsAsync && !currentMethod.IsImplicitlyDeclared) 1753if (parameter.RefKind == RefKind.Out && !(this.CurrentSymbol is MethodSymbol currentMethod && currentMethod.IsAsync)) // out parameters not allowed in async
FlowAnalysis\FlowAnalysisPass.cs (1)
180BoundStatement ret = (method.IsIterator && !method.IsAsync)
FlowAnalysis\NullableWalker.cs (2)
1262else if (CurrentSymbol is MethodSymbol { IsAsync: false }) 2916if (!method.IsAsync)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
201if (_F.CurrentFunction.IsAsync && _F.CurrentFunction.IsIterator)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
53if (!method.IsAsync)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
36=> !function.IsAsync && !function.IsIterator
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
165if (originalMethod.IsAsync)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
296var isStateMachine = _factory.CurrentFunction.IsAsync || _factory.CurrentFunction.IsIterator;
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
60if (elementType.IsDefault || method.IsAsync)
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 (1)
494Debug.Assert(this.OriginalMethod.IsAsync);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
499Debug.Assert(!method.IsIterator || !method.IsAsync); // an override handles async-iterators
Symbols\MethodSymbolExtensions.cs (5)
151return method.IsAsync && method.ReturnsVoid; 159return method.IsAsync 169return method.IsAsync 179return method.IsAsync 188return method.IsAsync
Symbols\PublicModel\MethodSymbol.cs (1)
237return _underlying.IsAsync;
Symbols\ReducedExtensionMethodSymbol.cs (1)
405get { return _reducedFrom.IsAsync; }
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1218method.IsAsync &&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
551if (IsAsync) 1079if (IsAsync)
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
145return UnderlyingMethod.IsAsync;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
666Assert.False(m2.IsAsync); 670Assert.True(m.IsAsync); 833Assert.True(m.IsAsync); 1777Assert.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)
218Assert.False(m1.IsAsync); 2709Assert.False(accessor.IsAsync); 6232Assert.False(accessor.IsAsync); 8256Assert.False(m01.IsAsync); 8268Assert.False(m02.IsAsync); 8280Assert.False(m03.IsAsync); 8292Assert.False(m04.IsAsync); 8304Assert.False(m05.IsAsync); 8316Assert.False(m06.IsAsync); 8328Assert.False(m07.IsAsync); 8340Assert.False(m08.IsAsync); 8352Assert.False(m09.IsAsync); 8364Assert.False(m10.IsAsync); 8376Assert.False(m11.IsAsync); 8388Assert.True(m12.IsAsync); 8400Assert.False(m13.IsAsync); 8609Assert.False(m1.IsAsync); 8648Assert.False(m1.IsAsync); 8711Assert.False(m1.IsAsync); 8796Assert.False(m1.IsAsync); 8809Assert.False(m2.IsAsync); 8822Assert.False(m3.IsAsync); 8878Assert.False(m1.IsAsync); 8936Assert.False(m1.IsAsync); 8949Assert.False(m2.IsAsync); 8962Assert.False(m3.IsAsync); 9187Assert.False(m1.IsAsync); 9915Assert.False(m1.IsAsync); 9965Assert.False(m1.IsAsync); 10046Assert.False(m1.IsAsync); 10060Assert.False(m2.IsAsync); 10074Assert.False(m3.IsAsync); 10088Assert.False(m4.IsAsync); 10154Assert.False(m2.IsAsync); 10208Assert.False(m1.IsAsync); 10222Assert.False(m2.IsAsync); 10236Assert.False(m3.IsAsync); 10250Assert.False(m4.IsAsync); 10264Assert.False(m5.IsAsync); 10434Assert.False(m1.IsAsync); 10448Assert.False(m2.IsAsync); 10554Assert.False(m1.IsAsync); 10568Assert.False(m2.IsAsync); 10582Assert.False(m3.IsAsync); 10596Assert.False(m4.IsAsync); 10610Assert.False(m5.IsAsync); 10662Assert.Equal(!(m is PEModuleSymbol), m1.IsAsync); 10725Assert.False(m1.IsAsync); 10889Assert.False(m1.IsAsync); 10903Assert.False(m2.IsAsync); 10920Assert.False(m2Impl.IsAsync); 10996Assert.False(m1.IsAsync); 11010Assert.False(m2.IsAsync); 11027Assert.False(m2Impl.IsAsync); 11626Assert.False(m1.IsAsync); 12482Assert.False(m1.IsAsync); 12570Assert.False(m1.IsAsync); 12658Assert.False(m1.IsAsync); 12952Assert.False(accessor.IsAsync); 12974Assert.False(p02get.IsAsync); 12995Assert.False(p03set.IsAsync); 13016Assert.False(p04get.IsAsync); 13037Assert.False(p05set.IsAsync); 13058Assert.False(p06get.IsAsync); 13079Assert.False(p07set.IsAsync); 13100Assert.False(p08get.IsAsync); 13121Assert.False(p09set.IsAsync); 13142Assert.False(p10get.IsAsync); 13166Assert.False(accessor.IsAsync); 13191Assert.False(accessor.IsAsync); 13216Assert.False(accessor.IsAsync); 13241Assert.False(accessor.IsAsync); 13266Assert.False(accessor.IsAsync); 13291Assert.False(accessor.IsAsync); 13313Assert.False(p17get.IsAsync); 13334Assert.False(p18get.IsAsync); 13748Assert.False(p1get.IsAsync); 13846Assert.False(accessor.IsAsync); 13919Assert.False(accessor.IsAsync); 14138Assert.False(accessor.IsAsync); 14228Assert.False(p1get.IsAsync); 14251Assert.False(p2set.IsAsync); 14274Assert.False(p3get.IsAsync); 14487Assert.False(accessor.IsAsync); 14570Assert.False(p1get.IsAsync); 14593Assert.False(p2get.IsAsync); 14619Assert.False(accessor.IsAsync); 14643Assert.False(p4get.IsAsync); 14846Assert.False(m1.IsAsync); 16039Assert.False(accessor.IsAsync); 16149Assert.False(p1get.IsAsync); 16175Assert.False(p2get.IsAsync); 16201Assert.False(p3set.IsAsync); 16447Assert.False(accessor.IsAsync); 16615Assert.False(p1get.IsAsync); 16641Assert.False(p2set.IsAsync); 16673Assert.False(accessor.IsAsync); 16700Assert.False(p4get.IsAsync); 16725Assert.False(p5set.IsAsync); 16858Assert.False(p1get.IsAsync); 16884Assert.False(p2get.IsAsync); 16913Assert.False(accessor.IsAsync); 16942Assert.False(accessor.IsAsync); 16968Assert.False(p5get.IsAsync); 17111Assert.False(accessor.IsAsync); 17138Assert.False(p2get.IsAsync); 17167Assert.False(accessor.IsAsync); 17197Assert.False(accessor.IsAsync); 17223Assert.False(p5get.IsAsync); 17320Assert.False(m1.IsAsync); 17604Assert.False(accessor.IsAsync); 18201Assert.False(m1.IsAsync); 19701Assert.False(m1.IsAsync); 20359Assert.False(accessor.IsAsync); 21429Assert.False(accessor.IsAsync); 21451Assert.False(p02get.IsAsync); 21472Assert.False(p03set.IsAsync); 21493Assert.False(p04get.IsAsync); 21514Assert.False(p05set.IsAsync); 21535Assert.False(p06get.IsAsync); 21556Assert.False(p07set.IsAsync); 21577Assert.False(p08get.IsAsync); 21598Assert.False(p09set.IsAsync); 21619Assert.False(p10get.IsAsync); 21643Assert.False(accessor.IsAsync); 21668Assert.False(accessor.IsAsync); 21693Assert.False(accessor.IsAsync); 21718Assert.False(accessor.IsAsync); 21743Assert.False(accessor.IsAsync); 21768Assert.False(accessor.IsAsync); 21790Assert.False(p17get.IsAsync); 21811Assert.False(p18get.IsAsync); 26674Assert.False(accessor.IsAsync); 26696Assert.False(p02get.IsAsync); 26717Assert.False(p03set.IsAsync); 26738Assert.False(p04get.IsAsync); 26759Assert.False(p05set.IsAsync); 26780Assert.False(p06get.IsAsync); 26801Assert.False(p07set.IsAsync); 26822Assert.False(p08get.IsAsync); 26843Assert.False(p09set.IsAsync); 26864Assert.False(p10get.IsAsync); 26890Assert.False(accessor.IsAsync); 26916Assert.False(accessor.IsAsync); 27474Assert.False(accessor.IsAsync); 27547Assert.False(accessor.IsAsync); 27648Assert.False(accessor.IsAsync); 27815Assert.False(accessor.IsAsync); 27842Assert.False(accessor.IsAsync); 27869Assert.False(accessor.IsAsync); 27977Assert.False(accessor.IsAsync); 28072Assert.False(accessor.IsAsync); 28099Assert.False(accessor.IsAsync); 28126Assert.False(accessor.IsAsync); 28153Assert.False(accessor.IsAsync); 28288Assert.False(m1.IsAsync); 29426Assert.False(accessor.IsAsync); 29541Assert.False(accessor.IsAsync); 29571Assert.False(accessor.IsAsync); 29601Assert.False(accessor.IsAsync); 29860Assert.False(accessor.IsAsync); 29954Assert.False(accessor.IsAsync); 29984Assert.False(accessor.IsAsync); 30014Assert.False(accessor.IsAsync); 30043Assert.False(accessor.IsAsync); 30072Assert.False(accessor.IsAsync); 30284Assert.False(accessor.IsAsync); 30314Assert.False(accessor.IsAsync); 30344Assert.False(accessor.IsAsync); 30373Assert.False(accessor.IsAsync); 30505Assert.False(accessor.IsAsync); 30535Assert.False(accessor.IsAsync); 30565Assert.False(accessor.IsAsync); 30595Assert.False(accessor.IsAsync); 30624Assert.False(accessor.IsAsync); 30725Assert.False(m1.IsAsync); 31067Assert.False(accessor.IsAsync); 32885Assert.False(m1.IsAsync); 33722Assert.False(m1.IsAsync); 33838Assert.NotEqual(m1 is PEMethodSymbol, m1.IsAsync); 44482Assert.False(cctor.IsAsync); 44580Assert.False(cctor.IsAsync); 50935Assert.False(m.IsAsync); 51858Assert.False(i2m1.IsAsync); 51981Assert.True(i2m1.IsAsync); 53574Assert.False(i2p1Get.IsAsync); 53591Assert.False(i2p1Set.IsAsync);
Symbols\ExtendedPartialMethodsTests.cs (6)
1198Assert.False(method.IsAsync); 1199Assert.True(method.PartialImplementationPart.IsAsync); 1222Assert.False(method.IsAsync); 1223Assert.True(method.PartialImplementationPart.IsAsync); 1254Assert.False(method.IsAsync); 1255Assert.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); 997Assert.False(m01.IsAsync); 1027Assert.False(m01.IsAsync); 1069Assert.False(m01.IsAsync); 1084Assert.False(m01.IsAsync); 1162Assert.False(m01.IsAsync); 1199Assert.False(m01.IsAsync); 1236Assert.False(m01.IsAsync); 1283Assert.False(m01.IsAsync); 1298Assert.False(m01.IsAsync); 1334Assert.False(m01.IsAsync); 1349Assert.False(m01.IsAsync); 1389Assert.False(m01.IsAsync); 1404Assert.False(m01.IsAsync); 1447Assert.False(m01.IsAsync); 1462Assert.False(m01.IsAsync); 1502Assert.False(m01.IsAsync); 1517Assert.False(m01.IsAsync); 1560Assert.False(m01.IsAsync); 1575Assert.False(m01.IsAsync); 1843Assert.False(m01.IsAsync); 1855Assert.False(m02.IsAsync); 1867Assert.False(m03.IsAsync); 1879Assert.False(m04.IsAsync); 1891Assert.False(m05.IsAsync); 1903Assert.False(m06.IsAsync); 1915Assert.False(m07.IsAsync); 1927Assert.False(m08.IsAsync); 1939Assert.False(m09.IsAsync); 1951Assert.False(m10.IsAsync); 2651Assert.False(m01.IsAsync); 2663Assert.False(m02.IsAsync); 2675Assert.False(m03.IsAsync); 2687Assert.False(m04.IsAsync); 2699Assert.False(m05.IsAsync); 2711Assert.False(m06.IsAsync); 2723Assert.False(m07.IsAsync); 2735Assert.False(m08.IsAsync); 2747Assert.False(m09.IsAsync); 2759Assert.False(m10.IsAsync); 3379Assert.False(m01.IsAsync); 3391Assert.False(m02.IsAsync); 3403Assert.False(m03.IsAsync); 3415Assert.False(m04.IsAsync); 3427Assert.False(m05.IsAsync); 3439Assert.False(m06.IsAsync); 3451Assert.False(m07.IsAsync); 3463Assert.False(m08.IsAsync); 3475Assert.False(m09.IsAsync); 3487Assert.False(m10.IsAsync); 4146Assert.False(m01.IsAsync); 4159Assert.False(m01.IsAsync); 4172Assert.False(m01.IsAsync); 4392Assert.False(m01.IsAsync); 4405Assert.False(m01.IsAsync); 4418Assert.False(m01.IsAsync); 4578Assert.False(m01.IsAsync); 4591Assert.False(m01.IsAsync); 4604Assert.False(m01.IsAsync); 4818Assert.False(m01.IsAsync); 4831Assert.False(m01.IsAsync); 4844Assert.False(m01.IsAsync);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
69Assert.False(symbol.IsAsync);