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
330 references to IsAsync
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder_Await.cs (3)
98if ((object)call.Method != null && call.Method.IsAsync) 112|| !(containingMethod.IsAsync || containingMethod is SynthesizedSimpleProgramEntryPointSymbol)) 174if (method.IsAsync)
Binder\Binder_Expressions.cs (1)
3297&& ((MethodSymbol)containingSymbol).IsAsync
Binder\Binder_Statements.cs (2)
220if (method.IsAsync) 2971return (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 (3)
174if (_method.IsAsync && _module.Compilation.IsRuntimeAsyncEnabledIn(_method)) 325|| (_method.IsAsync 329if (_emitPdbSequencePoints && !_method.IsIterator && !_method.IsAsync)
Compilation\CSharpCompilation.cs (1)
2065if (candidate.IsAsync)
Compiler\MethodCompiler.cs (2)
1666isAsyncStateMachine = kickoffMethod.IsAsync; 1736Debug.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)
250if (_F.CurrentFunction.IsAsync && _F.CurrentFunction.IsIterator)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
53if (!method.IsAsync)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
20if (!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)
1227method.IsAsync &&
Symbols\Source\SourceMethodSymbol.cs (1)
132bool isAsync = target.IsAsync;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
583if (IsAsync) 1532if (IsAsync) 1759if (this.IsAsync && this.DeclaringCompilation.IsRuntimeAsyncEnabledIn(this))
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)
209Assert.False(m1.IsAsync); 2700Assert.False(accessor.IsAsync); 6428Assert.False(accessor.IsAsync); 8452Assert.False(m01.IsAsync); 8464Assert.False(m02.IsAsync); 8476Assert.False(m03.IsAsync); 8488Assert.False(m04.IsAsync); 8500Assert.False(m05.IsAsync); 8512Assert.False(m06.IsAsync); 8524Assert.False(m07.IsAsync); 8536Assert.False(m08.IsAsync); 8548Assert.False(m09.IsAsync); 8560Assert.False(m10.IsAsync); 8572Assert.False(m11.IsAsync); 8584Assert.True(m12.IsAsync); 8596Assert.False(m13.IsAsync); 8805Assert.False(m1.IsAsync); 8844Assert.False(m1.IsAsync); 8907Assert.False(m1.IsAsync); 8992Assert.False(m1.IsAsync); 9005Assert.False(m2.IsAsync); 9018Assert.False(m3.IsAsync); 9074Assert.False(m1.IsAsync); 9132Assert.False(m1.IsAsync); 9145Assert.False(m2.IsAsync); 9158Assert.False(m3.IsAsync); 9383Assert.False(m1.IsAsync); 10111Assert.False(m1.IsAsync); 10161Assert.False(m1.IsAsync); 10242Assert.False(m1.IsAsync); 10256Assert.False(m2.IsAsync); 10270Assert.False(m3.IsAsync); 10284Assert.False(m4.IsAsync); 10350Assert.False(m2.IsAsync); 10404Assert.False(m1.IsAsync); 10418Assert.False(m2.IsAsync); 10432Assert.False(m3.IsAsync); 10446Assert.False(m4.IsAsync); 10460Assert.False(m5.IsAsync); 10630Assert.False(m1.IsAsync); 10644Assert.False(m2.IsAsync); 10750Assert.False(m1.IsAsync); 10764Assert.False(m2.IsAsync); 10778Assert.False(m3.IsAsync); 10792Assert.False(m4.IsAsync); 10806Assert.False(m5.IsAsync); 10858Assert.Equal(!(m is PEModuleSymbol), m1.IsAsync); 10921Assert.False(m1.IsAsync); 11085Assert.False(m1.IsAsync); 11099Assert.False(m2.IsAsync); 11116Assert.False(m2Impl.IsAsync); 11192Assert.False(m1.IsAsync); 11206Assert.False(m2.IsAsync); 11223Assert.False(m2Impl.IsAsync); 11822Assert.False(m1.IsAsync); 12678Assert.False(m1.IsAsync); 12766Assert.False(m1.IsAsync); 12854Assert.False(m1.IsAsync); 13148Assert.False(accessor.IsAsync); 13170Assert.False(p02get.IsAsync); 13191Assert.False(p03set.IsAsync); 13212Assert.False(p04get.IsAsync); 13233Assert.False(p05set.IsAsync); 13254Assert.False(p06get.IsAsync); 13275Assert.False(p07set.IsAsync); 13296Assert.False(p08get.IsAsync); 13317Assert.False(p09set.IsAsync); 13338Assert.False(p10get.IsAsync); 13362Assert.False(accessor.IsAsync); 13387Assert.False(accessor.IsAsync); 13412Assert.False(accessor.IsAsync); 13437Assert.False(accessor.IsAsync); 13462Assert.False(accessor.IsAsync); 13487Assert.False(accessor.IsAsync); 13509Assert.False(p17get.IsAsync); 13530Assert.False(p18get.IsAsync); 13944Assert.False(p1get.IsAsync); 14042Assert.False(accessor.IsAsync); 14115Assert.False(accessor.IsAsync); 14334Assert.False(accessor.IsAsync); 14424Assert.False(p1get.IsAsync); 14447Assert.False(p2set.IsAsync); 14470Assert.False(p3get.IsAsync); 14683Assert.False(accessor.IsAsync); 14766Assert.False(p1get.IsAsync); 14789Assert.False(p2get.IsAsync); 14815Assert.False(accessor.IsAsync); 14839Assert.False(p4get.IsAsync); 15042Assert.False(m1.IsAsync); 16235Assert.False(accessor.IsAsync); 16345Assert.False(p1get.IsAsync); 16371Assert.False(p2get.IsAsync); 16397Assert.False(p3set.IsAsync); 16643Assert.False(accessor.IsAsync); 16811Assert.False(p1get.IsAsync); 16837Assert.False(p2set.IsAsync); 16869Assert.False(accessor.IsAsync); 16896Assert.False(p4get.IsAsync); 16921Assert.False(p5set.IsAsync); 17054Assert.False(p1get.IsAsync); 17080Assert.False(p2get.IsAsync); 17109Assert.False(accessor.IsAsync); 17138Assert.False(accessor.IsAsync); 17164Assert.False(p5get.IsAsync); 17307Assert.False(accessor.IsAsync); 17334Assert.False(p2get.IsAsync); 17363Assert.False(accessor.IsAsync); 17393Assert.False(accessor.IsAsync); 17419Assert.False(p5get.IsAsync); 17516Assert.False(m1.IsAsync); 17800Assert.False(accessor.IsAsync); 18397Assert.False(m1.IsAsync); 19897Assert.False(m1.IsAsync); 20555Assert.False(accessor.IsAsync); 21625Assert.False(accessor.IsAsync); 21647Assert.False(p02get.IsAsync); 21668Assert.False(p03set.IsAsync); 21689Assert.False(p04get.IsAsync); 21710Assert.False(p05set.IsAsync); 21731Assert.False(p06get.IsAsync); 21752Assert.False(p07set.IsAsync); 21773Assert.False(p08get.IsAsync); 21794Assert.False(p09set.IsAsync); 21815Assert.False(p10get.IsAsync); 21839Assert.False(accessor.IsAsync); 21864Assert.False(accessor.IsAsync); 21889Assert.False(accessor.IsAsync); 21914Assert.False(accessor.IsAsync); 21939Assert.False(accessor.IsAsync); 21964Assert.False(accessor.IsAsync); 21986Assert.False(p17get.IsAsync); 22007Assert.False(p18get.IsAsync); 26870Assert.False(accessor.IsAsync); 26892Assert.False(p02get.IsAsync); 26913Assert.False(p03set.IsAsync); 26934Assert.False(p04get.IsAsync); 26955Assert.False(p05set.IsAsync); 26976Assert.False(p06get.IsAsync); 26997Assert.False(p07set.IsAsync); 27018Assert.False(p08get.IsAsync); 27039Assert.False(p09set.IsAsync); 27060Assert.False(p10get.IsAsync); 27086Assert.False(accessor.IsAsync); 27112Assert.False(accessor.IsAsync); 27670Assert.False(accessor.IsAsync); 27743Assert.False(accessor.IsAsync); 27844Assert.False(accessor.IsAsync); 28011Assert.False(accessor.IsAsync); 28038Assert.False(accessor.IsAsync); 28065Assert.False(accessor.IsAsync); 28173Assert.False(accessor.IsAsync); 28268Assert.False(accessor.IsAsync); 28295Assert.False(accessor.IsAsync); 28322Assert.False(accessor.IsAsync); 28349Assert.False(accessor.IsAsync); 28484Assert.False(m1.IsAsync); 29622Assert.False(accessor.IsAsync); 29737Assert.False(accessor.IsAsync); 29767Assert.False(accessor.IsAsync); 29797Assert.False(accessor.IsAsync); 30056Assert.False(accessor.IsAsync); 30150Assert.False(accessor.IsAsync); 30180Assert.False(accessor.IsAsync); 30210Assert.False(accessor.IsAsync); 30239Assert.False(accessor.IsAsync); 30268Assert.False(accessor.IsAsync); 30480Assert.False(accessor.IsAsync); 30510Assert.False(accessor.IsAsync); 30540Assert.False(accessor.IsAsync); 30569Assert.False(accessor.IsAsync); 30701Assert.False(accessor.IsAsync); 30731Assert.False(accessor.IsAsync); 30761Assert.False(accessor.IsAsync); 30791Assert.False(accessor.IsAsync); 30820Assert.False(accessor.IsAsync); 30921Assert.False(m1.IsAsync); 31263Assert.False(accessor.IsAsync); 33081Assert.False(m1.IsAsync); 33918Assert.False(m1.IsAsync); 34034Assert.NotEqual(m1 is PEMethodSymbol, m1.IsAsync); 44669Assert.False(cctor.IsAsync); 44767Assert.False(cctor.IsAsync); 51122Assert.False(m.IsAsync); 52045Assert.False(i2m1.IsAsync); 52168Assert.True(i2m1.IsAsync); 53761Assert.False(i2p1Get.IsAsync); 53778Assert.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);