5 references to IsAnonymousOrLocalFunction
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\UseConditionalExpression\UseConditionalExpressionHelpers.cs (2)
58
var whenTrueSymbols = semanticModel.GetAllDeclaredSymbols(whenTrue.Syntax, cancellationToken, n => !syntaxFacts.
IsAnonymousOrLocalFunction
(n));
59
var whenFalseSymbols = semanticModel.GetAllDeclaredSymbols(whenFalse.Syntax, cancellationToken, n => !syntaxFacts.
IsAnonymousOrLocalFunction
(n));
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
76
syntaxFacts.
IsAnonymousOrLocalFunction
(ancestor) &&
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
500
if (simpleName.AncestorsAndSelf().Any(syntaxFacts.
IsAnonymousOrLocalFunction
))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
65
return isLanguageVersionGreaterOrEqualToCSharp8 ? !SyntaxFacts.
IsAnonymousOrLocalFunction
(node) : !SyntaxFacts.IsLocalFunctionStatement(node);