File tree 1 file changed +28
-2
lines changed
app/src/cc/arduino/autocomplete
1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ public class ArduinoCompletionsList extends ArrayList<ArduinoCompletion> {
9
9
class ArduinoCompletion {
10
10
ArduinoCompletionDetail completion ;
11
11
String type ;
12
+ String location ;
12
13
13
14
public ArduinoCompletionDetail getCompletion () {
14
15
return completion ;
@@ -17,6 +18,10 @@ public ArduinoCompletionDetail getCompletion() {
17
18
public String getType () {
18
19
return type ;
19
20
}
21
+
22
+ public String getLocation () {
23
+ return location ;
24
+ }
20
25
}
21
26
22
27
class ArduinoCompletionDetail {
@@ -30,15 +35,32 @@ public List<CompletionChunk> getChunks() {
30
35
public String getBrief () {
31
36
return brief ;
32
37
}
38
+
39
+ public String getResultType () {
40
+ for (CompletionChunk c : chunks ) {
41
+ if (c .res != null )
42
+ return c .res ;
43
+ }
44
+ return null ;
45
+ }
46
+
47
+ public String getTypedText () {
48
+ for (CompletionChunk c : chunks ) {
49
+ if (c .typedtext != null )
50
+ return c .typedtext ;
51
+ }
52
+ return null ;
53
+ }
33
54
}
34
55
35
56
class CompletionChunk {
36
57
String typedtext ;
37
58
String t ;
38
59
String placeholder ;
39
60
String res ;
61
+ String info ;
40
62
ArduinoCompletionDetail optional ;
41
-
63
+
42
64
public String getTypedtext () {
43
65
return typedtext ;
44
66
}
@@ -54,8 +76,12 @@ public String getPlaceholder() {
54
76
public String getRes () {
55
77
return res ;
56
78
}
57
-
79
+
58
80
public ArduinoCompletionDetail getOptional () {
59
81
return optional ;
60
82
}
83
+
84
+ public String getInfo () {
85
+ return info ;
86
+ }
61
87
}
You can’t perform that action at this time.
0 commit comments