Debian Codegraph @

tests/snippets/python/test_walrus_operator.txt

raw
1 # Tests that ':=' is recognized as an Operator
2
3 ---input---
4 if (a := 2) > 4:
5
6 ---tokens---
7 'if' Keyword
8 ' ' Text
9 '(' Punctuation
10 'a' Name
11 ' ' Text
12 ':=' Operator
13 ' ' Text
14 '2' Literal.Number.Integer
15 ')' Punctuation
16 ' ' Text
17 '>' Operator
18 ' ' Text
19 '4' Literal.Number.Integer
20 ':' Punctuation
21 '\n' Text.Whitespace