aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/position_info.h
blob: a65c4663a9d840b29e4760cdd546b7531ca55413 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <util/generic/maybe.h>
#include <util/system/types.h>

namespace NYsonPull {
    struct TPositionInfo {
        TMaybe<ui64> Offset;
        TMaybe<ui64> Line;
        TMaybe<ui64> Column;

        TPositionInfo() = default;
        TPositionInfo(
            TMaybe<ui64> offset_,
            TMaybe<ui64> line_ = Nothing(),
            TMaybe<ui64> column_ = Nothing())
            : Offset{offset_}
            , Line{line_}
            , Column{column_} {
        }
    };

}