aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/position_info.h
blob: 3d6b86b409b6367825017e10c09827cae9f30016 (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_} {
        } 
    }; 

}