-
Notifications
You must be signed in to change notification settings - Fork 5
/
req.py
41 lines (35 loc) · 1.12 KB
/
req.py
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
class Req:
@staticmethod
def update_session_includes(filepaths):
return {
"tag":"RequestUpdateSession",
"contents":
[ { "tag": "RequestUpdateTargets",
"contents": {"tag": "TargetsInclude", "contents": filepaths }
}
]
}
@staticmethod
def update_session():
return { "tag":"RequestUpdateSession", "contents": []}
@staticmethod
def get_source_errors():
return {"tag": "RequestGetSourceErrors", "contents":[]}
@staticmethod
def get_exp_types(exp_span):
return { "tag": "RequestGetExpTypes", "contents": exp_span}
@staticmethod
def get_exp_info(exp_span):
return { "tag": "RequestGetSpanInfo", "contents": exp_span}
@staticmethod
def get_shutdown():
return {"tag":"RequestShutdownSession", "contents":[]}
@staticmethod
def get_autocompletion(filepath,prefix):
return {
"tag":"RequestGetAutocompletion",
"contents": [
filepath,
prefix
]
}