Debian Codegraph @

tests/languages/jq/function_feature.test

raw
1 def foo:
2 def bar(x,y,z):
3 fooBar(x)
4
5 ----------------------------------------------------
6
7 [
8 ["keyword", "def"],
9 ["function", "foo"],
10 ["punctuation", ":"],
11
12 ["keyword", "def"],
13 ["function", "bar"],
14 ["punctuation", "("],
15 "x",
16 ["punctuation", ","],
17 "y",
18 ["punctuation", ","],
19 "z",
20 ["punctuation", ")"],
21 ["punctuation", ":"],
22
23 ["c-style-function", "fooBar"],
24 ["punctuation", "("],
25 "x",
26 ["punctuation", ")"]
27 ]
28
29 ----------------------------------------------------
30
31 Checks for functions.