Implemented interface member:
property
IsAsync
Microsoft.CodeAnalysis.Symbols.IMethodSymbolInternal.IsAsync
20 overrides of IsAsync
Microsoft.CodeAnalysis.CSharp (20)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
135
public override bool
IsAsync
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
74
public sealed override bool
IsAsync
Symbols\ErrorMethodSymbol.cs (1)
74
public override bool
IsAsync
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
823
public override bool
IsAsync
=> false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
529
public override bool
IsAsync
=> false;
Symbols\ReducedExtensionMethodSymbol.cs (1)
411
public override bool
IsAsync
Symbols\SignatureOnlyMethodSymbol.cs (1)
147
public override bool
IsAsync
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
108
public override bool
IsAsync
Symbols\Source\LocalFunctionSymbol.cs (1)
363
public override bool
IsAsync
=> (_declarationModifiers & DeclarationModifiers.Async) != 0;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
695
public sealed override bool
IsAsync
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
158
public override bool
IsAsync
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
186
public override bool
IsAsync
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
281
public override bool
IsAsync
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
171
public sealed override bool
IsAsync
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
228
public sealed override bool
IsAsync
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
79
public override bool
IsAsync
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
209
public override bool
IsAsync
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
109
public override bool
IsAsync
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
245
public override bool
IsAsync
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
141
public override bool
IsAsync
330 references to IsAsync
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder_Await.cs (3)
98
if ((object)call.Method != null && call.Method.
IsAsync
)
112
|| !(containingMethod.
IsAsync
|| containingMethod is SynthesizedSimpleProgramEntryPointSymbol))
174
if (method.
IsAsync
)
Binder\Binder_Expressions.cs (1)
3297
&& ((MethodSymbol)containingSymbol).
IsAsync
Binder\Binder_Statements.cs (2)
220
if (method.
IsAsync
)
2971
return (object)method != null && method.
IsAsync
;
Binder\ExecutableCodeBinder.cs (1)
161
if (asyncInterface && !iterator.
IsAsync
)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3285
if (lambda.Symbol.
IsAsync
)
BoundTree\UnboundLambda.cs (1)
156
inferredReturnType = InferReturnType(returnTypes, node: this, Binder, delegateType, Symbol.
IsAsync
, conversions);
CodeGen\CodeGenerator.cs (3)
174
if (_method.
IsAsync
&& _module.Compilation.IsRuntimeAsyncEnabledIn(_method))
325
|| (_method.
IsAsync
329
if (_emitPdbSequencePoints && !_method.IsIterator && !_method.
IsAsync
)
Compilation\CSharpCompilation.cs (1)
2065
if (candidate.
IsAsync
)
Compiler\MethodCompiler.cs (2)
1666
isAsyncStateMachine = kickoffMethod.
IsAsync
;
1736
Debug.Assert(method.
IsAsync
|| method.IsIterator);
FlowAnalysis\DefiniteAssignment.cs (2)
410
if (CurrentSymbol is MethodSymbol currentMethod && currentMethod.
IsAsync
&& !currentMethod.IsImplicitlyDeclared)
1892
if (parameter.RefKind == RefKind.Out && !(this.CurrentSymbol is MethodSymbol currentMethod && currentMethod.
IsAsync
)) // out parameters not allowed in async
FlowAnalysis\FlowAnalysisPass.cs (1)
200
BoundStatement ret = (method.IsIterator && !method.
IsAsync
)
FlowAnalysis\NullableWalker.cs (2)
1403
else if (CurrentSymbol is MethodSymbol {
IsAsync
: false })
3158
if (!method.
IsAsync
)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
250
if (_F.CurrentFunction.
IsAsync
&& _F.CurrentFunction.IsIterator)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
53
if (!method.
IsAsync
)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
20
if (!method.
IsAsync
)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
39
=> !function.
IsAsync
&& !function.IsIterator
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
162
if (originalMethod.
IsAsync
)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
301
var isStateMachine = _factory.CurrentFunction.
IsAsync
|| _factory.CurrentFunction.IsIterator;
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
60
if (elementType.IsDefault || method.
IsAsync
)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1039
if (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)
523
SynthesizedLocalKind.Spill => this.OriginalMethod.
IsAsync
,
524
SynthesizedLocalKind.ForEachArray => this.OriginalMethod.
IsAsync
|| this.OriginalMethod.IsIterator,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
521
Debug.Assert(!method.IsIterator || !method.
IsAsync
); // an override handles async-iterators
Symbols\MethodSymbolExtensions.cs (5)
153
return method.
IsAsync
&& method.ReturnsVoid;
161
return method.
IsAsync
171
return method.
IsAsync
181
return method.
IsAsync
190
return method.
IsAsync
Symbols\PublicModel\MethodSymbol.cs (1)
238
return _underlying.
IsAsync
;
Symbols\ReducedExtensionMethodSymbol.cs (1)
413
get { return _reducedFrom.
IsAsync
; }
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1227
method.
IsAsync
&&
Symbols\Source\SourceMethodSymbol.cs (1)
132
bool isAsync = target.
IsAsync
;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
583
if (
IsAsync
)
1532
if (
IsAsync
)
1759
if (this.
IsAsync
&& this.DeclaringCompilation.IsRuntimeAsyncEnabledIn(this))
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
145
return UnderlyingMethod.
IsAsync
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncIteratorTests.cs (4)
959
Assert.False(m2.
IsAsync
);
963
Assert.True(m.
IsAsync
);
1126
Assert.True(m.
IsAsync
);
2073
Assert.True(m.
IsAsync
);
CodeGen\CodeGenAsyncMethodBuilderOverrideTests.cs (2)
134
Assert.True(method.
IsAsync
);
137
Assert.True(method.
IsAsync
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\BindingAsyncTasklikeMoreTests.cs (8)
111
Assert.True(method.
IsAsync
);
114
Assert.True(method.
IsAsync
);
436
Assert.True(method.
IsAsync
);
440
Assert.True(method.
IsAsync
);
517
Assert.True(method.
IsAsync
);
521
Assert.True(method.
IsAsync
);
596
Assert.True(method.
IsAsync
);
600
Assert.True(method.
IsAsync
);
Semantics\BindingAsyncTasklikeTests.cs (4)
37
Assert.True(methodf.
IsAsync
);
38
Assert.True(methodg.
IsAsync
);
312
Assert.True(methodf.
IsAsync
);
313
Assert.True(methodg.
IsAsync
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (265)
Symbols\DefaultInterfaceImplementationTests.cs (187)
209
Assert.False(m1.
IsAsync
);
2700
Assert.False(accessor.
IsAsync
);
6428
Assert.False(accessor.
IsAsync
);
8452
Assert.False(m01.
IsAsync
);
8464
Assert.False(m02.
IsAsync
);
8476
Assert.False(m03.
IsAsync
);
8488
Assert.False(m04.
IsAsync
);
8500
Assert.False(m05.
IsAsync
);
8512
Assert.False(m06.
IsAsync
);
8524
Assert.False(m07.
IsAsync
);
8536
Assert.False(m08.
IsAsync
);
8548
Assert.False(m09.
IsAsync
);
8560
Assert.False(m10.
IsAsync
);
8572
Assert.False(m11.
IsAsync
);
8584
Assert.True(m12.
IsAsync
);
8596
Assert.False(m13.
IsAsync
);
8805
Assert.False(m1.
IsAsync
);
8844
Assert.False(m1.
IsAsync
);
8907
Assert.False(m1.
IsAsync
);
8992
Assert.False(m1.
IsAsync
);
9005
Assert.False(m2.
IsAsync
);
9018
Assert.False(m3.
IsAsync
);
9074
Assert.False(m1.
IsAsync
);
9132
Assert.False(m1.
IsAsync
);
9145
Assert.False(m2.
IsAsync
);
9158
Assert.False(m3.
IsAsync
);
9383
Assert.False(m1.
IsAsync
);
10111
Assert.False(m1.
IsAsync
);
10161
Assert.False(m1.
IsAsync
);
10242
Assert.False(m1.
IsAsync
);
10256
Assert.False(m2.
IsAsync
);
10270
Assert.False(m3.
IsAsync
);
10284
Assert.False(m4.
IsAsync
);
10350
Assert.False(m2.
IsAsync
);
10404
Assert.False(m1.
IsAsync
);
10418
Assert.False(m2.
IsAsync
);
10432
Assert.False(m3.
IsAsync
);
10446
Assert.False(m4.
IsAsync
);
10460
Assert.False(m5.
IsAsync
);
10630
Assert.False(m1.
IsAsync
);
10644
Assert.False(m2.
IsAsync
);
10750
Assert.False(m1.
IsAsync
);
10764
Assert.False(m2.
IsAsync
);
10778
Assert.False(m3.
IsAsync
);
10792
Assert.False(m4.
IsAsync
);
10806
Assert.False(m5.
IsAsync
);
10858
Assert.Equal(!(m is PEModuleSymbol), m1.
IsAsync
);
10921
Assert.False(m1.
IsAsync
);
11085
Assert.False(m1.
IsAsync
);
11099
Assert.False(m2.
IsAsync
);
11116
Assert.False(m2Impl.
IsAsync
);
11192
Assert.False(m1.
IsAsync
);
11206
Assert.False(m2.
IsAsync
);
11223
Assert.False(m2Impl.
IsAsync
);
11822
Assert.False(m1.
IsAsync
);
12678
Assert.False(m1.
IsAsync
);
12766
Assert.False(m1.
IsAsync
);
12854
Assert.False(m1.
IsAsync
);
13148
Assert.False(accessor.
IsAsync
);
13170
Assert.False(p02get.
IsAsync
);
13191
Assert.False(p03set.
IsAsync
);
13212
Assert.False(p04get.
IsAsync
);
13233
Assert.False(p05set.
IsAsync
);
13254
Assert.False(p06get.
IsAsync
);
13275
Assert.False(p07set.
IsAsync
);
13296
Assert.False(p08get.
IsAsync
);
13317
Assert.False(p09set.
IsAsync
);
13338
Assert.False(p10get.
IsAsync
);
13362
Assert.False(accessor.
IsAsync
);
13387
Assert.False(accessor.
IsAsync
);
13412
Assert.False(accessor.
IsAsync
);
13437
Assert.False(accessor.
IsAsync
);
13462
Assert.False(accessor.
IsAsync
);
13487
Assert.False(accessor.
IsAsync
);
13509
Assert.False(p17get.
IsAsync
);
13530
Assert.False(p18get.
IsAsync
);
13944
Assert.False(p1get.
IsAsync
);
14042
Assert.False(accessor.
IsAsync
);
14115
Assert.False(accessor.
IsAsync
);
14334
Assert.False(accessor.
IsAsync
);
14424
Assert.False(p1get.
IsAsync
);
14447
Assert.False(p2set.
IsAsync
);
14470
Assert.False(p3get.
IsAsync
);
14683
Assert.False(accessor.
IsAsync
);
14766
Assert.False(p1get.
IsAsync
);
14789
Assert.False(p2get.
IsAsync
);
14815
Assert.False(accessor.
IsAsync
);
14839
Assert.False(p4get.
IsAsync
);
15042
Assert.False(m1.
IsAsync
);
16235
Assert.False(accessor.
IsAsync
);
16345
Assert.False(p1get.
IsAsync
);
16371
Assert.False(p2get.
IsAsync
);
16397
Assert.False(p3set.
IsAsync
);
16643
Assert.False(accessor.
IsAsync
);
16811
Assert.False(p1get.
IsAsync
);
16837
Assert.False(p2set.
IsAsync
);
16869
Assert.False(accessor.
IsAsync
);
16896
Assert.False(p4get.
IsAsync
);
16921
Assert.False(p5set.
IsAsync
);
17054
Assert.False(p1get.
IsAsync
);
17080
Assert.False(p2get.
IsAsync
);
17109
Assert.False(accessor.
IsAsync
);
17138
Assert.False(accessor.
IsAsync
);
17164
Assert.False(p5get.
IsAsync
);
17307
Assert.False(accessor.
IsAsync
);
17334
Assert.False(p2get.
IsAsync
);
17363
Assert.False(accessor.
IsAsync
);
17393
Assert.False(accessor.
IsAsync
);
17419
Assert.False(p5get.
IsAsync
);
17516
Assert.False(m1.
IsAsync
);
17800
Assert.False(accessor.
IsAsync
);
18397
Assert.False(m1.
IsAsync
);
19897
Assert.False(m1.
IsAsync
);
20555
Assert.False(accessor.
IsAsync
);
21625
Assert.False(accessor.
IsAsync
);
21647
Assert.False(p02get.
IsAsync
);
21668
Assert.False(p03set.
IsAsync
);
21689
Assert.False(p04get.
IsAsync
);
21710
Assert.False(p05set.
IsAsync
);
21731
Assert.False(p06get.
IsAsync
);
21752
Assert.False(p07set.
IsAsync
);
21773
Assert.False(p08get.
IsAsync
);
21794
Assert.False(p09set.
IsAsync
);
21815
Assert.False(p10get.
IsAsync
);
21839
Assert.False(accessor.
IsAsync
);
21864
Assert.False(accessor.
IsAsync
);
21889
Assert.False(accessor.
IsAsync
);
21914
Assert.False(accessor.
IsAsync
);
21939
Assert.False(accessor.
IsAsync
);
21964
Assert.False(accessor.
IsAsync
);
21986
Assert.False(p17get.
IsAsync
);
22007
Assert.False(p18get.
IsAsync
);
26870
Assert.False(accessor.
IsAsync
);
26892
Assert.False(p02get.
IsAsync
);
26913
Assert.False(p03set.
IsAsync
);
26934
Assert.False(p04get.
IsAsync
);
26955
Assert.False(p05set.
IsAsync
);
26976
Assert.False(p06get.
IsAsync
);
26997
Assert.False(p07set.
IsAsync
);
27018
Assert.False(p08get.
IsAsync
);
27039
Assert.False(p09set.
IsAsync
);
27060
Assert.False(p10get.
IsAsync
);
27086
Assert.False(accessor.
IsAsync
);
27112
Assert.False(accessor.
IsAsync
);
27670
Assert.False(accessor.
IsAsync
);
27743
Assert.False(accessor.
IsAsync
);
27844
Assert.False(accessor.
IsAsync
);
28011
Assert.False(accessor.
IsAsync
);
28038
Assert.False(accessor.
IsAsync
);
28065
Assert.False(accessor.
IsAsync
);
28173
Assert.False(accessor.
IsAsync
);
28268
Assert.False(accessor.
IsAsync
);
28295
Assert.False(accessor.
IsAsync
);
28322
Assert.False(accessor.
IsAsync
);
28349
Assert.False(accessor.
IsAsync
);
28484
Assert.False(m1.
IsAsync
);
29622
Assert.False(accessor.
IsAsync
);
29737
Assert.False(accessor.
IsAsync
);
29767
Assert.False(accessor.
IsAsync
);
29797
Assert.False(accessor.
IsAsync
);
30056
Assert.False(accessor.
IsAsync
);
30150
Assert.False(accessor.
IsAsync
);
30180
Assert.False(accessor.
IsAsync
);
30210
Assert.False(accessor.
IsAsync
);
30239
Assert.False(accessor.
IsAsync
);
30268
Assert.False(accessor.
IsAsync
);
30480
Assert.False(accessor.
IsAsync
);
30510
Assert.False(accessor.
IsAsync
);
30540
Assert.False(accessor.
IsAsync
);
30569
Assert.False(accessor.
IsAsync
);
30701
Assert.False(accessor.
IsAsync
);
30731
Assert.False(accessor.
IsAsync
);
30761
Assert.False(accessor.
IsAsync
);
30791
Assert.False(accessor.
IsAsync
);
30820
Assert.False(accessor.
IsAsync
);
30921
Assert.False(m1.
IsAsync
);
31263
Assert.False(accessor.
IsAsync
);
33081
Assert.False(m1.
IsAsync
);
33918
Assert.False(m1.
IsAsync
);
34034
Assert.NotEqual(m1 is PEMethodSymbol, m1.
IsAsync
);
44669
Assert.False(cctor.
IsAsync
);
44767
Assert.False(cctor.
IsAsync
);
51122
Assert.False(m.
IsAsync
);
52045
Assert.False(i2m1.
IsAsync
);
52168
Assert.True(i2m1.
IsAsync
);
53761
Assert.False(i2p1Get.
IsAsync
);
53778
Assert.False(i2p1Set.
IsAsync
);
Symbols\ExtendedPartialMethodsTests.cs (6)
1266
Assert.False(method.
IsAsync
);
1267
Assert.True(method.PartialImplementationPart.
IsAsync
);
1290
Assert.False(method.
IsAsync
);
1291
Assert.True(method.PartialImplementationPart.
IsAsync
);
1322
Assert.False(method.
IsAsync
);
1323
Assert.True(method.PartialImplementationPart.
IsAsync
);
Symbols\StaticAbstractMembersInInterfacesTests.cs (72)
158
Assert.False(m01.
IsAsync
);
170
Assert.False(m02.
IsAsync
);
182
Assert.False(m03.
IsAsync
);
194
Assert.False(m04.
IsAsync
);
206
Assert.False(m05.
IsAsync
);
218
Assert.False(m06.
IsAsync
);
230
Assert.False(m07.
IsAsync
);
242
Assert.False(m08.
IsAsync
);
254
Assert.False(m09.
IsAsync
);
266
Assert.False(m10.
IsAsync
);
869
Assert.False(m01.
IsAsync
);
979
Assert.False(m01.
IsAsync
);
1009
Assert.False(m01.
IsAsync
);
1051
Assert.False(m01.
IsAsync
);
1066
Assert.False(m01.
IsAsync
);
1144
Assert.False(m01.
IsAsync
);
1181
Assert.False(m01.
IsAsync
);
1218
Assert.False(m01.
IsAsync
);
1265
Assert.False(m01.
IsAsync
);
1280
Assert.False(m01.
IsAsync
);
1316
Assert.False(m01.
IsAsync
);
1331
Assert.False(m01.
IsAsync
);
1371
Assert.False(m01.
IsAsync
);
1386
Assert.False(m01.
IsAsync
);
1429
Assert.False(m01.
IsAsync
);
1444
Assert.False(m01.
IsAsync
);
1484
Assert.False(m01.
IsAsync
);
1499
Assert.False(m01.
IsAsync
);
1542
Assert.False(m01.
IsAsync
);
1557
Assert.False(m01.
IsAsync
);
1825
Assert.False(m01.
IsAsync
);
1837
Assert.False(m02.
IsAsync
);
1849
Assert.False(m03.
IsAsync
);
1861
Assert.False(m04.
IsAsync
);
1873
Assert.False(m05.
IsAsync
);
1885
Assert.False(m06.
IsAsync
);
1897
Assert.False(m07.
IsAsync
);
1909
Assert.False(m08.
IsAsync
);
1921
Assert.False(m09.
IsAsync
);
1933
Assert.False(m10.
IsAsync
);
2633
Assert.False(m01.
IsAsync
);
2645
Assert.False(m02.
IsAsync
);
2657
Assert.False(m03.
IsAsync
);
2669
Assert.False(m04.
IsAsync
);
2681
Assert.False(m05.
IsAsync
);
2693
Assert.False(m06.
IsAsync
);
2705
Assert.False(m07.
IsAsync
);
2717
Assert.False(m08.
IsAsync
);
2729
Assert.False(m09.
IsAsync
);
2741
Assert.False(m10.
IsAsync
);
3361
Assert.False(m01.
IsAsync
);
3373
Assert.False(m02.
IsAsync
);
3385
Assert.False(m03.
IsAsync
);
3397
Assert.False(m04.
IsAsync
);
3409
Assert.False(m05.
IsAsync
);
3421
Assert.False(m06.
IsAsync
);
3433
Assert.False(m07.
IsAsync
);
3445
Assert.False(m08.
IsAsync
);
3457
Assert.False(m09.
IsAsync
);
3469
Assert.False(m10.
IsAsync
);
4128
Assert.False(m01.
IsAsync
);
4141
Assert.False(m01.
IsAsync
);
4154
Assert.False(m01.
IsAsync
);
4374
Assert.False(m01.
IsAsync
);
4387
Assert.False(m01.
IsAsync
);
4400
Assert.False(m01.
IsAsync
);
4560
Assert.False(m01.
IsAsync
);
4573
Assert.False(m01.
IsAsync
);
4586
Assert.False(m01.
IsAsync
);
4800
Assert.False(m01.
IsAsync
);
4813
Assert.False(m01.
IsAsync
);
4826
Assert.False(m01.
IsAsync
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
69
Assert.False(symbol.
IsAsync
);