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

Function recurSortConflictsOf

lib/web/brackets.js:301–316  ·  view source on GitHub ↗
(at, level)

Source from the content-addressed store, hash-verified

299}
300
301function recurSortConflictsOf(at, level) {
302 var a = (cmGetLineNumber(at.h1));
303 var b = (cmGetLineNumber(at.h2));
304 at.level = level;
305 at.deltWith = 1;
306 raph.forEach(function (e) {
307 if ("isHandleDecorator" in e && e.deltWith == 0 && e != at) {
308 var a2 = (cmGetLineNumber(e.h1));
309 var b2 = (cmGetLineNumber(e.h2));
310
311 if (a2 <= b && b2 >= a) {
312 recurSortConflictsOf(e, level + 1);
313 }
314 }
315 })
316}
317
318function sortConflicts() {
319 raph.forEach(function (e) {

Callers 1

sortConflictsFunction · 0.85

Calls 2

cmGetLineNumberFunction · 0.85
forEachMethod · 0.45

Tested by

no test coverage detected