| 748 | // Some methods to exercise RegisterMethod |
| 749 | int64_t AddInt(int64_t x) const { return v_int + x; } |
| 750 | Array<int64_t> AppendInt(Array<int64_t> xs, int64_t y) const { |
| 751 | xs.push_back(y); |
| 752 | return xs; |
| 753 | } |
| 754 | Optional<String> MaybeConcat(Optional<String> a, Optional<String> b) const { |
| 755 | if (a.has_value() && b.has_value()) return String(a.value() + b.value()); |
| 756 | if (a.has_value()) return a; |