(source, target)
| 902 | return source.match.def === target.match.nativeDef; |
| 903 | } |
| 904 | function staticCanMatchDefinition(source, target) { |
| 905 | var sloc = source.locator.slice(source.alternation).join(""), tloc = target.locator.slice(target.alternation).join(""), canMatch = sloc == tloc; |
| 906 | canMatch = canMatch && source.match.fn === null && target.match.fn !== null ? target.match.fn.test(source.match.def, getMaskSet(), pos, false, opts, false) : false; |
| 907 | return canMatch; |
| 908 | } |
| 909 | function setMergeLocators(targetMatch, altMatch) { |
| 910 | if (altMatch === undefined || targetMatch.alternation === altMatch.alternation && targetMatch.locator[targetMatch.alternation].toString().indexOf(altMatch.locator[altMatch.alternation]) === -1) { |
| 911 | targetMatch.mloc = targetMatch.mloc || {}; |
no test coverage detected