reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1485 buf = "\n{\n\t"; 1496 buf += elementTypeAsString; 1497 buf += " "; 1499 buf += elementName; 1500 buf += ";\n\t"; 1515 buf += "struct __objcFastEnumerationState enumState = { 0 };\n\t"; 1517 buf += "id __rw_items[16];\n\t"; 1519 buf += "id l_collection = (id)"; 1534 ReplaceText(startLoc, startCollectionBuf - startBuf, buf); 1539 buf = ";\n\t"; 1552 buf += "unsigned long limit =\n\t\t"; 1553 SynthCountByEnumWithState(buf); 1554 buf += ";\n\t"; 1563 buf += "if (limit) {\n\t"; 1564 buf += "unsigned long startMutations = *enumState.mutationsPtr;\n\t"; 1565 buf += "do {\n\t\t"; 1566 buf += "unsigned long counter = 0;\n\t\t"; 1567 buf += "do {\n\t\t\t"; 1568 buf += "if (startMutations != *enumState.mutationsPtr)\n\t\t\t\t"; 1569 buf += "objc_enumerationMutation(l_collection);\n\t\t\t"; 1570 buf += elementName; 1571 buf += " = ("; 1572 buf += elementTypeAsString; 1573 buf += ")enumState.itemsPtr[counter++];"; 1575 ReplaceText(lparenLoc, 1, buf); 1588 buf = ";\n\t"; 1589 buf += "__continue_label_"; 1590 buf += utostr(ObjCBcLabelNo.back()); 1591 buf += ": ;"; 1592 buf += "\n\t\t"; 1593 buf += "} while (counter < limit);\n\t"; 1594 buf += "} while (limit = "; 1595 SynthCountByEnumWithState(buf); 1596 buf += ");\n\t"; 1597 buf += elementName; 1598 buf += " = (("; 1599 buf += elementTypeAsString; 1600 buf += ")0);\n\t"; 1601 buf += "__break_label_"; 1602 buf += utostr(ObjCBcLabelNo.back()); 1603 buf += ": ;\n\t"; 1604 buf += "}\n\t"; 1605 buf += "else\n\t\t"; 1606 buf += elementName; 1607 buf += " = (("; 1608 buf += elementTypeAsString; 1609 buf += ")0);\n\t"; 1610 buf += "}\n"; 1616 InsertText(endBodyLoc, buf); 1629 InsertText(endBodyLoc, buf);