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)
145
public override bool
IsAsync
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\LambdaSymbol.cs (1)
107
public override bool
IsAsync
Symbols\Source\LocalFunctionSymbol.cs (1)
357
public override bool
IsAsync
=> (_declarationModifiers & DeclarationModifiers.Async) != 0;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
667
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)
279
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)
208
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
38 references to IsAsync
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Await.cs (3)
95
if ((object)call.Method != null && call.Method.
IsAsync
)
109
|| !(containingMethod.
IsAsync
|| containingMethod is SynthesizedSimpleProgramEntryPointSymbol))
171
if (method.
IsAsync
)
Binder\Binder_Expressions.cs (1)
3248
&& ((MethodSymbol)containingSymbol).
IsAsync
Binder\Binder_Statements.cs (2)
220
if (method.
IsAsync
)
2934
return (object)method != null && method.
IsAsync
;
Binder\ExecutableCodeBinder.cs (1)
156
if (asyncInterface && !iterator.
IsAsync
)
CodeGen\CodeGenerator.cs (1)
313
if (_emitPdbSequencePoints && !_method.IsIterator && !_method.
IsAsync
)
Compiler\MethodCompiler.cs (2)
1534
isAsyncStateMachine = kickoffMethod.
IsAsync
;
1607
Debug.Assert(method.
IsAsync
|| method.IsIterator);
FlowAnalysis\DefiniteAssignment.cs (2)
401
if (CurrentSymbol is MethodSymbol currentMethod && currentMethod.
IsAsync
&& !currentMethod.IsImplicitlyDeclared)
1879
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)
1310
else if (CurrentSymbol is MethodSymbol {
IsAsync
: false })
2994
if (!method.
IsAsync
)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
213
if (_F.CurrentFunction.
IsAsync
&& _F.CurrentFunction.IsIterator)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
53
if (!method.
IsAsync
)
Lowering\ClosureConversion\ClosureConversion.Analysis.cs (1)
38
=> !function.
IsAsync
&& !function.IsIterator
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
166
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)
1040
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)
516
SynthesizedLocalKind.Spill => this.OriginalMethod.
IsAsync
,
517
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)
151
return method.
IsAsync
&& method.ReturnsVoid;
159
return method.
IsAsync
169
return method.
IsAsync
179
return method.
IsAsync
188
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)
1229
method.
IsAsync
&&
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
583
if (
IsAsync
)
1518
if (
IsAsync
)
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
145
return UnderlyingMethod.
IsAsync
;