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