1- use crate :: completion:: types:: FunctionCompletionTemplate ;
1+ use crate :: completion:: types:: FunctionTemplate ;
22
33/// Macro to convert string literals into `Vec<String>`
44macro_rules! str_vec {
@@ -13,62 +13,62 @@ macro_rules! str_vec {
1313// TODO: More verbose descriptions with examples
1414
1515/// Get completion of builtin functions. They are all defined in `simplicityhl::parse::CallName`
16- pub fn get_builtin_functions ( ) -> Vec < FunctionCompletionTemplate > {
16+ pub fn get_builtin_functions ( ) -> Vec < FunctionTemplate > {
1717 vec ! [
18- FunctionCompletionTemplate :: simple(
18+ FunctionTemplate :: simple(
1919 "assert!" ,
2020 str_vec![ "bool" ] ,
2121 "" ,
2222 "Fails program if argument is 'false'" ,
2323 ) ,
24- FunctionCompletionTemplate :: simple(
24+ FunctionTemplate :: simple(
2525 "dbg!" ,
2626 str_vec![ "type" ] ,
2727 "type" ,
2828 "Print value and return it" ,
2929 ) ,
30- FunctionCompletionTemplate :: simple( "panic!" , str_vec![ ] , "" , "Fails program" ) ,
31- FunctionCompletionTemplate :: new(
30+ FunctionTemplate :: simple( "panic!" , str_vec![ ] , "" , "Fails program" ) ,
31+ FunctionTemplate :: new(
3232 "unwrap_left::<T>" ,
3333 "unwrap_left" ,
3434 str_vec![ "T" ] ,
3535 str_vec![ "Either<T, U>" ] ,
3636 "T" ,
3737 "Unwrap left side of Either" ,
3838 ) ,
39- FunctionCompletionTemplate :: new(
39+ FunctionTemplate :: new(
4040 "unwrap_right::<U>" ,
4141 "unwrap_right" ,
4242 str_vec![ "U" ] ,
4343 str_vec![ "Either<T, U>" ] ,
4444 "U" ,
4545 "Unwrap right side of Either" ,
4646 ) ,
47- FunctionCompletionTemplate :: new(
47+ FunctionTemplate :: new(
4848 "is_none::<T>" ,
4949 "is_none" ,
5050 str_vec![ "T" ] ,
5151 str_vec![ "Option<T>" ] ,
5252 "bool" ,
5353 "Check if Option is None" ,
5454 ) ,
55- FunctionCompletionTemplate :: new(
55+ FunctionTemplate :: new(
5656 "fold::<F, B>" ,
5757 "fold" ,
5858 str_vec![ "F" , "B" ] ,
5959 str_vec![ "iter" , "init" ] ,
6060 "B" ,
6161 "Fold operation over an iterator" ,
6262 ) ,
63- FunctionCompletionTemplate :: new(
63+ FunctionTemplate :: new(
6464 "array_fold::<F, N>" ,
6565 "array_fold" ,
6666 str_vec![ "F" , "N" ] ,
6767 str_vec![ "array" , "init" ] ,
6868 "B" ,
6969 "Fold operation over an array of size N" ,
7070 ) ,
71- FunctionCompletionTemplate :: new(
71+ FunctionTemplate :: new(
7272 "for_while::<F>" ,
7373 "for_while" ,
7474 str_vec![ "F" ] ,
0 commit comments