5 implementations of IsAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationAbstractMethodSymbol.cs (1)
85public virtual bool IsAsync => this.Modifiers.IsAsync;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
233bool IMethodSymbol.IsAsync
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedMethodSymbol.cs (1)
54public bool IsAsync => _symbol.IsAsync;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1085Private ReadOnly Property IMethodSymbol_IsAsync As Boolean Implements IMethodSymbol.IsAsync, IMethodSymbolInternal.IsAsync
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationAbstractMethodSymbol.cs (1)
85public virtual bool IsAsync => this.Modifiers.IsAsync;
25 references to IsAsync
Microsoft.CodeAnalysis.CodeStyle (3)
DeclarationModifiers.cs (1)
90isAsync: method?.IsAsync == true,
IMethodSymbolExtensions.cs (1)
114if (!method.IsAsync)
SymbolSpecification.cs (1)
528if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
CSharpTypeInferenceService.TypeInferrer.cs (1)
2089var isAsync = symbol is IMethodSymbol methodSymbol && methodSymbol.IsAsync;
MethodGenerator.cs (2)
305if (CodeGenerationMethodInfo.GetIsPartial(method) && !method.IsAsync) 329if (CodeGenerationMethodInfo.GetIsPartial(method) && method.IsAsync)
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
130modifiers: new DeclarationModifiers(isStatic, isAsync: declaredSymbol.IsAsync, isUnsafe: needsUnsafe),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\BindingAsyncTests.cs (3)
59Assert.True(((IMethodSymbol)model.GetSymbolInfo(simple).Symbol).IsAsync); 65Assert.True(((IMethodSymbol)model.GetSymbolInfo(paren).Symbol).IsAsync); 88Assert.True(((IMethodSymbol)model.GetSymbolInfo(del).Symbol).IsAsync);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CSharpTypeInferenceService.TypeInferrer.cs (1)
2089var isAsync = symbol is IMethodSymbol methodSymbol && methodSymbol.IsAsync;
MethodGenerator.cs (2)
305if (CodeGenerationMethodInfo.GetIsPartial(method) && !method.IsAsync) 329if (CodeGenerationMethodInfo.GetIsPartial(method) && method.IsAsync)
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
1057if (newSymbol is IMethodSymbol { IsAsync: true }) 5968var stateMachineAttributeQualifiedName = oldMethod.IsAsync
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
385&& !callerMethodSymbol.IsAsync
MetadataAsSource\AbstractMetadataAsSourceService.WrappedMethodSymbol.cs (1)
54public bool IsAsync => _symbol.IsAsync;
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
121!getMethod.IsAsync && 153!setMethod.IsAsync &&
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1085Private ReadOnly Property IMethodSymbol_IsAsync As Boolean Implements IMethodSymbol.IsAsync, IMethodSymbolInternal.IsAsync
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
741If memberMethod.IsAsync Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
741If memberMethod.IsAsync Then
Microsoft.CodeAnalysis.Workspaces (3)
Editing\DeclarationModifiers.cs (1)
90isAsync: method?.IsAsync == true,
IMethodSymbolExtensions.cs (1)
114if (!method.IsAsync)
SymbolSpecification.cs (1)
528if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)