| 22 | namespace google::api::expr::parser { |
| 23 | |
| 24 | class EnrichedSourceInfo { |
| 25 | public: |
| 26 | explicit EnrichedSourceInfo( |
| 27 | std::map<int64_t, std::pair<int32_t, int32_t>> offsets) |
| 28 | : offsets_(std::move(offsets)) {} |
| 29 | |
| 30 | EnrichedSourceInfo() = default; |
| 31 | EnrichedSourceInfo(const EnrichedSourceInfo& other) = default; |
| 32 | EnrichedSourceInfo& operator=(const EnrichedSourceInfo& other) = default; |
| 33 | EnrichedSourceInfo(EnrichedSourceInfo&& other) = default; |
| 34 | EnrichedSourceInfo& operator=(EnrichedSourceInfo&& other) = default; |
| 35 | |
| 36 | const std::map<int64_t, std::pair<int32_t, int32_t>>& offsets() const { |
| 37 | return offsets_; |
| 38 | } |
| 39 | |
| 40 | private: |
| 41 | // A map between node_id and pair of start position and end position |
| 42 | std::map<int64_t, std::pair<int32_t, int32_t>> offsets_; |
| 43 | }; |
| 44 | |
| 45 | } // namespace google::api::expr::parser |
| 46 |
no outgoing calls
no test coverage detected