4 implementations of IMethodSymbol_IsAsync
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
85public virtual bool IsAsync => this.Modifiers.IsAsync;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
234bool IMethodSymbol.IsAsync
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1110Private ReadOnly Property IMethodSymbol_IsAsync As Boolean Implements IMethodSymbol.IsAsync, IMethodSymbolInternal.IsAsync
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
85public virtual bool IsAsync => this.Modifiers.IsAsync;
22 references to IMethodSymbol_IsAsync
Microsoft.AspNetCore.Mvc.Analyzers (1)
TagHelpersInCodeBlocksAnalyzer.cs (1)
85if (!methodSymbol.IsAsync ||
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\Core\Portable\Editing\DeclarationModifiers.cs (1)
91isAsync: method?.IsAsync == true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
115if (!method.IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
503if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
307if (CodeGenerationMethodInfo.GetIsPartial(method) && !method.IsAsync) 329if (CodeGenerationMethodInfo.GetIsPartial(method) && method.IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2028var isAsync = symbol is IMethodSymbol methodSymbol && methodSymbol.IsAsync;
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)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
307if (CodeGenerationMethodInfo.GetIsPartial(method) && !method.IsAsync) 329if (CodeGenerationMethodInfo.GetIsPartial(method) && method.IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2028var isAsync = symbol is IMethodSymbol methodSymbol && methodSymbol.IsAsync;
Microsoft.CodeAnalysis.Features (3)
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
385&& !callerMethodSymbol.IsAsync
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
114!getMethod.IsAsync && 146!setMethod.IsAsync &&
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1110Private ReadOnly Property IMethodSymbol_IsAsync As Boolean Implements IMethodSymbol.IsAsync, IMethodSymbolInternal.IsAsync
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
741If memberMethod.IsAsync Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
741If memberMethod.IsAsync Then
Microsoft.CodeAnalysis.Workspaces (3)
Editing\DeclarationModifiers.cs (1)
91isAsync: method?.IsAsync == true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
115if (!method.IsAsync)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (1)
503if (Modifier.IsAsync && kind == SymbolKind.Method && ((IMethodSymbol)symbol).IsAsync)