File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
app/src/cc/arduino/autocomplete Expand file tree Collapse file tree 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> {
99class ArduinoCompletion {
1010 ArduinoCompletionDetail completion ;
1111 String type ;
12+ String location ;
1213
1314 public ArduinoCompletionDetail getCompletion () {
1415 return completion ;
@@ -17,6 +18,10 @@ public ArduinoCompletionDetail getCompletion() {
1718 public String getType () {
1819 return type ;
1920 }
21+
22+ public String getLocation () {
23+ return location ;
24+ }
2025}
2126
2227class ArduinoCompletionDetail {
@@ -30,15 +35,32 @@ public List<CompletionChunk> getChunks() {
3035 public String getBrief () {
3136 return brief ;
3237 }
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+ }
3354}
3455
3556class CompletionChunk {
3657 String typedtext ;
3758 String t ;
3859 String placeholder ;
3960 String res ;
61+ String info ;
4062 ArduinoCompletionDetail optional ;
41-
63+
4264 public String getTypedtext () {
4365 return typedtext ;
4466 }
@@ -54,8 +76,12 @@ public String getPlaceholder() {
5476 public String getRes () {
5577 return res ;
5678 }
57-
79+
5880 public ArduinoCompletionDetail getOptional () {
5981 return optional ;
6082 }
83+
84+ public String getInfo () {
85+ return info ;
86+ }
6187}
You can’t perform that action at this time.
0 commit comments