Debian Codegraph @

tests/snippets/scala/test_default_parameter.txt

raw
1 ---input---
2 def f(using y: Char = if true then 'a' else 2): Int = ???
3
4 ---tokens---
5 'def' Keyword
6 ' ' Text.Whitespace
7 'f' Name.Function
8 '(' Punctuation
9 'using' Keyword
10 ' ' Text.Whitespace
11 'y' Name
12 ':' Punctuation
13 ' ' Text.Whitespace
14 'Char' Name.Class
15 ' ' Text.Whitespace
16 '=' Operator
17 ' ' Text.Whitespace
18 'if' Keyword
19 ' ' Text.Whitespace
20 'true' Keyword.Constant
21 ' ' Text.Whitespace
22 'then' Keyword
23 ' ' Text.Whitespace
24 "'a'" Literal.String.Char
25 ' ' Text.Whitespace
26 'else' Keyword
27 ' ' Text.Whitespace
28 '2' Literal.Number.Integer
29 ')' Punctuation
30 ':' Punctuation
31 ' ' Text.Whitespace
32 'Int' Name.Class
33 ' ' Text.Whitespace
34 '=' Operator
35 ' ' Text.Whitespace
36 '???' Operator
37 '\n' Text.Whitespace