-
Notifications
You must be signed in to change notification settings - Fork 223
/
semanticdb2.proto
62 lines (53 loc) · 1.05 KB
/
semanticdb2.proto
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
57
58
59
60
61
62
syntax = "proto3";
package org.langmeta.internal.semanticdb.schema;
message Database {
repeated Document documents = 1;
}
message Document {
reserved 1;
reserved 5;
string filename = 9;
string contents = 8;
string language = 7;
repeated ResolvedName names = 2;
repeated Message messages = 3;
repeated ResolvedSymbol symbols = 4;
repeated Synthetic synthetics = 6;
}
message ResolvedName {
Position position = 1;
string symbol = 2;
bool is_definition = 3;
}
message Position {
int32 start = 2;
int32 end = 3;
}
message Message {
enum Severity {
UNKNOWN = 0;
INFO = 1;
WARNING = 2;
ERROR = 3;
}
Position position = 1;
Severity severity = 2;
string text = 3;
}
message ResolvedSymbol {
string symbol = 1;
Denotation denotation = 2;
}
message Denotation {
int64 flags = 1;
string name = 2;
string signature = 3;
repeated ResolvedName names = 4;
repeated string members = 5;
repeated string overrides = 6;
}
message Synthetic {
Position pos = 1;
string text = 2;
repeated ResolvedName names = 3;
}