MCPcopy Create free account
hub / github.com/Syncleus/aparapi / add

Method add

src/test/java/com/aparapi/codegen/Diff.java:150–164  ·  view source on GitHub ↗
(TYPE _type, int lhs, int rhs)

Source from the content-addressed store, hash-verified

148 private String[] lhs;
149
150 public void add(TYPE _type, int lhs, int rhs) {
151 if (false) {
152 if (blocks.size() > 0) {
153 Block lastBlock = blocks.get(blocks.size() - 1);
154 if (lastBlock.type == _type) {
155 lastBlock.extend(lhs, rhs);
156 } else {
157 blocks.add(new Block(_type, lhs, rhs));
158 }
159 } else {
160 blocks.add(new Block(_type, lhs, rhs));
161 }
162 }
163 blocks.add(new Block(_type, lhs, rhs));
164 }
165
166 DiffResult(String[] _lhs, String[] _rhs) {
167 lhs = _lhs;

Callers 15

diffMethod · 0.95
JTPKernelManagerMethod · 0.45
JTPKernelManagerMethod · 0.45
JTPKernelManagerMethod · 0.45
JTPKernelManagerMethod · 0.45
receiveReportMethod · 0.45
JTPKernelManagerMethod · 0.45
JTPKernelManagerMethod · 0.45
listDevicesMethod · 0.45
filterMethod · 0.45

Calls 3

extendMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected