-
Notifications
You must be signed in to change notification settings - Fork 1
/
Writer.h
56 lines (48 loc) · 2.37 KB
/
Writer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef Writer_H
#define Writer_H
#include <napi.h>
#include <SourcetrailDBWriter.h>
using namespace Napi;
class Writer : public ObjectWrap<Writer>
{
public:
static Napi::Object Init(Napi::Env env, Napi::Object exports);
Writer(const CallbackInfo &info);
private:
static FunctionReference constructor;
Napi::Value getVersionString(const CallbackInfo &info);
Napi::Value getSupportedDatabaseVersion(const CallbackInfo &info);
Napi::Value getLastError(const CallbackInfo &info);
void setLastError(const CallbackInfo &info);
void clearLastError(const CallbackInfo &info);
Napi::Value open(const CallbackInfo &info);
Napi::Value close(const CallbackInfo &info);
Napi::Value clear(const CallbackInfo &info);
Napi::Value isEmpty(const CallbackInfo &info);
Napi::Value isCompatible(const CallbackInfo &info);
Napi::Value getLoadedDatabaseVersion(const CallbackInfo &info);
Napi::Value beginTransaction(const CallbackInfo &info);
Napi::Value commitTransaction(const CallbackInfo &info);
Napi::Value rollbackTransaction(const CallbackInfo &info);
Napi::Value optimizeDatabaseMemory(const CallbackInfo &info);
Napi::Value recordSymbol(const CallbackInfo &info);
Napi::Value recordSymbolDefinitionKind(const CallbackInfo &info);
Napi::Value recordSymbolKind(const CallbackInfo &info);
Napi::Value recordSymbolLocation(const CallbackInfo &info);
Napi::Value recordSymbolScopeLocation(const CallbackInfo &info);
Napi::Value recordSymbolSignatureLocation(const CallbackInfo &info);
Napi::Value recordReference(const CallbackInfo &info);
Napi::Value recordReferenceLocation(const CallbackInfo &info);
Napi::Value recordReferenceIsAmbiguous(const CallbackInfo &info);
Napi::Value recordReferenceToUnsolvedSymhol(const CallbackInfo &info);
Napi::Value recordQualifierLocation(const CallbackInfo &info);
Napi::Value recordFile(const CallbackInfo &info);
Napi::Value recordFileLanguage(const CallbackInfo &info);
Napi::Value recordLocalSymbol(const CallbackInfo &info);
Napi::Value recordLocalSymbolLocation(const CallbackInfo &info);
Napi::Value recordAtomicSourceRange(const CallbackInfo &info);
Napi::Value recordError(const CallbackInfo &info);
sourcetrail::SourcetrailDBWriter writer;
std::pair<bool, const sourcetrail::SourceRange> Writer::toSourceRange(Napi::Value value);
};
#endif