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