PatternMatching\AllLowerCamelCaseMatcher.cs (6)
38in TemporaryArray<TextSpan> candidateHumps, out ImmutableArray<TextSpan> matchedSpans)
65private static PatternMatchKind GetKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps)
69int patternIndex, int candidateHumpIndex, bool? contiguous, in TemporaryArray<TextSpan> candidateHumps)
149int patternIndex, int humpIndex, bool contiguous, in TemporaryArray<TextSpan> candidateHumps)
211CamelCaseResult result, ref CamelCaseResult? bestResult, TextSpan? matchSpanToAdd, in TemporaryArray<TextSpan> candidateHumps)
240private static bool IsBetter(CamelCaseResult result, CamelCaseResult? currentBestResult, in TemporaryArray<TextSpan> candidateHumps)
src\Dependencies\Collections\TemporaryArrayExtensions.cs (13)
16/// Gets a mutable reference to a <see cref="TemporaryArray{T}"/> stored in a <c>using</c> variable.
19/// <para>This supporting method allows <see cref="TemporaryArray{T}"/>, a non-copyable <see langword="struct"/>
40public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array)
45public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate)
56public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate)
70public static T? SingleOrDefault<T>(this in TemporaryArray<T> array, Func<T, bool> predicate)
91public static T? SingleOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
112public static T? FirstOrDefault<T>(this in TemporaryArray<T> array)
115public static T? FirstOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
126public static int IndexOf<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg)
140public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)
149public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (7)
26private static void AddNode<TSyntaxNode>(bool allowEmptyNodes, ref TemporaryArray<TSyntaxNode> result, TSyntaxNode node) where TSyntaxNode : SyntaxNode
35ParsedDocument document, TextSpan selectionRaw, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode
266ref TemporaryArray<TSyntaxNode> result,
305ref TemporaryArray<TSyntaxNode> result,
351ref TemporaryArray<TSyntaxNode> result,
519ref TemporaryArray<TSyntaxNode> result,
559IEnumerable<SyntaxNode> nodes, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode