| 51 | } |
| 52 | |
| 53 | int32_t SourcePosition::column() const { |
| 54 | int32_t position = character_offset(); |
| 55 | std::pair<int, int32_t> line_and_offset = |
| 56 | GetLineAndLineOffset(source_info_, position); |
| 57 | return 1 + (position - line_and_offset.second); |
| 58 | } |
| 59 | |
| 60 | int32_t SourcePosition::character_offset() const { |
| 61 | if (source_info_ == nullptr) { |