summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/ide/pure_ast/cursor_text.h
blob: b3a5c1a04187f70e5b0067ed8d844955e639ed10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <util/generic/string.h>

namespace NSQLPureAST {

struct TCursorText {
    TStringBuf Text;
    size_t CursorPosition = Text.length();

    static TCursorText FromSharped(TString& text Y_LIFETIME_BOUND);
};

} // namespace NSQLPureAST