// ---
// DEF: void AOp::aAttrAttr(some-attr-kind attr) {
-// DEF-NEXT: this->setAttr("aAttr", attr);
+// DEF-NEXT: this->getOperation()->setAttr("aAttr", attr);
// DEF: void AOp::bAttrAttr(some-attr-kind attr) {
-// DEF-NEXT: this->setAttr("bAttr", attr);
+// DEF-NEXT: this->getOperation()->setAttr("bAttr", attr);
// DEF: void AOp::cAttrAttr(some-attr-kind attr) {
-// DEF-NEXT: this->setAttr("cAttr", attr);
+// DEF-NEXT: this->getOperation()->setAttr("cAttr", attr);
// Test build methods
// ---
auto &method = opClass.newMethod("void", (name + "Attr").str(),
(attr.getStorageType() + " attr").str());
auto &body = method.body();
- body << " this->setAttr(\"" << name << "\", attr);";
+ body << " this->getOperation()->setAttr(\"" << name << "\", attr);";
};
for (auto &namedAttr : op.getAttributes()) {