MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / EnrichedSourceInfo

Class EnrichedSourceInfo

parser/source_factory.h:24–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace google::api::expr::parser {
23
24class 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

Callers 1

enriched_source_infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected