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

Method wrap

src/main/java/fieldpython/PI.kt:139–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138 if (s.trim { it <= ' ' }.length == 0) return
139 written = true
140 if (currentLineNumber == null || currentLineNumber!!.first == null || currentLineNumber!!.second == -1) {
141 val o: Set<Consumer<Quad<Box, Int, String, Boolean>?>> = box.find(
142 directedOutput, box.upwards()
143 )
144 .collect(Collectors.toSet())
145 o.forEach(Consumer { x: Consumer<Quad<Box, Int, String, Boolean>?> ->
146 x.accept(
147 Quad(
148 box,
149 -1,
150 s,
151 true
152 )
153 )
154 })
155 } else {
156 val o: Set<Consumer<Quad<Box, Int, String, Boolean>?>> = box.find(
157 directedOutput, box.upwards()
158 )
159 .collect(Collectors.toSet())
160 if (o.size > 0) {
161 o.forEach(Consumer { x: Consumer<Quad<Box, Int, String, Boolean>?> ->
162 x.accept(
163 Quad(
164 currentLineNumber!!.first, currentLineNumber!!.second, s,
165 currentLineNumber!!.third
166 )
167 )
168 })
169 } else {
170 o.forEach(Consumer { x: Consumer<Quad<Box, Int, String, Boolean>?> ->
171 x.accept(
172 Quad(
173 box,
174 -1,
175 s,
176 true
177 )
178 )
179 })
180 }
181 }
182 }
183 }
184
185 @Throws(IOException::class)
186 override fun flush() {
187 }
188
189 @Throws(IOException::class)
190 override fun close() {
191 }
192 }
193
194 return object : Execution.ExecutionSupport {
195
196 var lineOffset = 0

Callers 1

processMethod · 0.45

Calls 2

findMethod · 0.45
bothMethod · 0.45

Tested by

no test coverage detected