MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / contains

Method contains

lib/web/CodeMirror/src/model/selection.js:40–48  ·  view source on GitHub ↗
(pos, end)

Source from the content-addressed store, hash-verified

38 }
39
40 contains(pos, end) {
41 if (!end) end = pos
42 for (let i = 0; i < this.ranges.length; i++) {
43 let range = this.ranges[i]
44 if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0)
45 return i
46 }
47 return -1
48 }
49}
50
51export class Range {

Callers 15

expressionFunction · 0.45
isTypoTypeofFunction · 0.45
functionparamsFunction · 0.45
blockVariableStatementFunction · 0.45
jshint.jsFile · 0.45
checkPunctuatorsFunction · 0.45
arrayComprehensionFunction · 0.45
d3.min.jsFile · 0.45
underscore-min.jsFile · 0.45

Calls 3

cmpFunction · 0.90
fromMethod · 0.80
toMethod · 0.80

Tested by

no test coverage detected