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