Debian Codegraph @

tests/languages/kotlin/function_feature.test

raw
1 foo()
2 foo_Bar_42()
3 list.filter {}
4 `function 1`()
5 ` !"#$%^&()*+,=?@{|}~-_`()
6 list.`take 1` {}
7 `make fun`()
8
9 ----------------------------------------------------
10
11 [
12 ["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
13 ["function", "foo_Bar_42"], ["punctuation", "("], ["punctuation", ")"],
14 "\r\nlist", ["punctuation", "."],
15 ["function", "filter"], ["punctuation", "{"], ["punctuation", "}"],
16 ["function", "`function 1`"], ["punctuation", "("], ["punctuation", ")"],
17 ["function", "` !\"#$%^&()*+,=?@{|}~-_`"], ["punctuation", "("], ["punctuation", ")"],
18 "\r\nlist", ["punctuation", "."],
19 ["function", "`take 1`"], ["punctuation", "{"], ["punctuation", "}"],
20 ["function", "`make fun`"], ["punctuation", "("], ["punctuation", ")"]
21 ]
22
23 ----------------------------------------------------
24
25 Checks for functions.