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

Method begin

src/main/java/fieldbox/boxes/plugins/PadGroup.kt:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95 (q as MutableList<Box>).clear()
96 }
97
98 var beginCount: Int = 0
99
100 fun begin() {
101 if (beginCount == 0) {
102 val q = parent.properties.computeIfAbsent(contents) { k -> ArrayList() }
103 q.forEach { x -> x.properties.put(mark, false) }
104
105 RunLoop.main.mainLoop.attach(Scene.perform(100, {
106 end()
107 false
108 }))
109 beginCount++
110 }

Callers

nothing calls this directly

Calls 6

endFunction · 0.85
computeIfAbsentMethod · 0.80
performMethod · 0.65
forEachMethod · 0.45
putMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected