Home
last modified time | relevance | path

Searched refs:dotSeparatedSegments (Results 1 – 1 of 1) sorted by relevance

/third_party/typescript/src/services/
DpatternMatcher.ts107 const dotSeparatedSegments = pattern.trim().split(".").map(p => createSegment(p.trim())); constant
109 … if (dotSeparatedSegments.some(segment => !segment.subWordTextChunks.length)) return undefined;
112 …h: (containers, candidate) => getFullMatch(containers, candidate, dotSeparatedSegments, stringToWo…
113 …orLastSegmentOfPattern: candidate => matchSegment(candidate, last(dotSeparatedSegments), stringToW…
114 patternContainsDots: dotSeparatedSegments.length > 1
118 …lMatch(candidateContainers: readonly string[], candidate: string, dotSeparatedSegments: readonly S…
122 … const candidateMatch = matchSegment(candidate, last(dotSeparatedSegments), stringToWordSpans);
129 if (dotSeparatedSegments.length - 1 > candidateContainers.length) {
136 for (let i = dotSeparatedSegments.length - 2, j = candidateContainers.length - 1;
139 …tch = betterMatch(bestMatch, matchSegment(candidateContainers[j], dotSeparatedSegments[i], stringT…