Lines Matching refs:candidate
39 for (let candidate of this.candidates)
40 if (this.same(node, candidate))
41 matches.push(candidate);
51 for (let candidate of matches) {
52 const score = this.neighborsScore(node, candidate);
55 bestMatch = candidate;
87 neighborsScore (node, candidate) { argument
92 var idx_text = candidate.i;
113 same (node, candidate) { argument
114 if (node === null && candidate === null)
116 if (node === null || candidate === null)
118 if (node.type != candidate.type)
120 if (node.text != candidate.text)