position_info.h 503 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <util/generic/maybe.h>
  3. #include <util/system/types.h>
  4. namespace NYsonPull {
  5. struct TPositionInfo {
  6. TMaybe<ui64> Offset;
  7. TMaybe<ui64> Line;
  8. TMaybe<ui64> Column;
  9. TPositionInfo() = default;
  10. TPositionInfo(
  11. TMaybe<ui64> offset_,
  12. TMaybe<ui64> line_ = Nothing(),
  13. TMaybe<ui64> column_ = Nothing())
  14. : Offset{offset_}
  15. , Line{line_}
  16. , Column{column_} {
  17. }
  18. };
  19. }