-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfix.snippets.json
22 lines (22 loc) · 1.26 KB
/
fix.snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"do list": {
"prefix": ["do list"],
"body": ["do list(path: \"${1:<sourceField>}\", \"var\": \"${4:<variableName>}\")", "\t${0:body}", "end"],
"description": "Iterates over each element of an array. In contrast to Catmandu, it can also iterate over a single object or string."
},
"do list_as": {
"prefix": ["do list_as"],
"body": ["do list_as(\"${1:<variableName_1>}\": \"${2:<sourceField_1>}\")", "\t${0:body}", "end"],
"description": "Iterates over each named element of an array (like do list with a variable name). If multiple arrays are given, iterates over the corresponding elements from each array (i.e., all elements with the same array index, skipping elements whose arrays have already been exhausted)."
},
"do once": {
"prefix": ["do once"],
"body": ["do once(\"${1:<blockName>}\")", "\t${0:body}", "end"],
"description": "Executes the statements only once (when the bind is first encountered), not repeatedly for each record."
},
"do put_macro": {
"prefix": ["do put_macro"],
"body": ["do put_macro(\"${1:<macroName>}\")", "\t${0:body}", "end"],
"description": "Defines a named macro, i.e. a list of statements that can be executed later with the call_macro function."
}
}