8 references to Any
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
452
=> node.IsReturnableConstruct() || (node is CompilationUnitSyntax compilationUnit && compilationUnit.Members.
Any
(SyntaxKind.GlobalStatement));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxListTests.cs (4)
275
Assert.True(list.
Any
(SyntaxKind.AddExpression));
278
Assert.True(list.
Any
(SyntaxKind.IdentifierName));
281
Assert.True(list.
Any
(SyntaxKind.NumericLiteralExpression));
284
Assert.False(list.
Any
(SyntaxKind.WhereClause));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
452
=> node.IsReturnableConstruct() || (node is CompilationUnitSyntax compilationUnit && compilationUnit.Members.
Any
(SyntaxKind.GlobalStatement));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
2685
var hasGetter = property.AccessorList != null && property.AccessorList.Accessors.
Any
(SyntaxKind.GetAccessorDeclaration);
2686
var hasSetter = property.AccessorList != null && property.AccessorList.Accessors.
Any
(SyntaxKind.SetAccessorDeclaration);