10 instantiations of Any
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Features.UnitTests (5)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
28 references to Any
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Features.UnitTests (16)
Microsoft.CodeAnalysis.Workspaces (9)
PatternMatching\RegexQuery.cs (8)
17/// (AND), alternation becomes <see cref="Any"/> (OR), and opaque constructs (wildcards, character
90/// Simplifies the query tree by flattening nested <see cref="All"/>/<see cref="Any"/> nodes,
95/// still constrain the match. In an <see cref="Any"/> (OR), it poisons the whole disjunction —
96/// if one branch can match anything, the entire <see cref="Any"/> can match anything, so it
101/// <see cref="Any"/>, or <see cref="Literal"/>, no <see cref="None"/> nodes exist anywhere
110Any any => OptimizeAny(any),
145static RegexQuery OptimizeAny(Any any)
158if (optimized is Any inner)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)