| 92 | GenTypeScriptOp::~GenTypeScriptOp() {} |
| 93 | |
| 94 | string GenTypeScriptOp::Code() { |
| 95 | ProcessArgs(); |
| 96 | ProcessAttrs(); |
| 97 | |
| 98 | // Generate exported function for Op: |
| 99 | AddMethodSignature(); |
| 100 | AddOpAttrs(); |
| 101 | AddMethodReturnAndClose(); |
| 102 | |
| 103 | strings::StrAppend(&result_, "\n"); |
| 104 | return result_; |
| 105 | } |
| 106 | |
| 107 | void GenTypeScriptOp::ProcessArgs() { |
| 108 | for (int i = 0; i < api_def_.arg_order_size(); i++) { |