2022-12-03 20:31:10 +01:00
|
|
|
[
|
|
|
|
Token {
|
|
|
|
kind: OpenTag(
|
|
|
|
Full,
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
1,
|
|
|
|
1,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Trait,
|
|
|
|
span: (
|
|
|
|
3,
|
|
|
|
1,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Identifier(
|
|
|
|
"foo",
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
3,
|
|
|
|
7,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: LeftBrace,
|
|
|
|
span: (
|
|
|
|
3,
|
|
|
|
11,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
2022-12-06 09:33:29 +01:00
|
|
|
kind: SingleLineComment(
|
2022-12-03 20:31:10 +01:00
|
|
|
"// it's okay to have `parent` type",
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
2022-12-06 09:33:29 +01:00
|
|
|
kind: SingleLineComment(
|
2022-12-03 20:31:10 +01:00
|
|
|
"// since it's not known at this time if",
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
2022-12-06 09:33:29 +01:00
|
|
|
kind: SingleLineComment(
|
2022-12-03 20:31:10 +01:00
|
|
|
"// `foo` will have a parent.",
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
6,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Public,
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Function,
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
12,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Identifier(
|
|
|
|
"bar",
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
21,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: LeftParen,
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
24,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: RightParen,
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
25,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Colon,
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
26,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
2022-12-06 16:41:09 +01:00
|
|
|
kind: Parent,
|
2022-12-03 20:31:10 +01:00
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
28,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: LeftBrace,
|
|
|
|
span: (
|
|
|
|
7,
|
|
|
|
35,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: Identifier(
|
|
|
|
"exit",
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
8,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: LeftParen,
|
|
|
|
span: (
|
|
|
|
8,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: LiteralInteger(
|
|
|
|
1,
|
|
|
|
),
|
|
|
|
span: (
|
|
|
|
8,
|
|
|
|
14,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: RightParen,
|
|
|
|
span: (
|
|
|
|
8,
|
|
|
|
15,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: SemiColon,
|
|
|
|
span: (
|
|
|
|
8,
|
|
|
|
16,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: RightBrace,
|
|
|
|
span: (
|
|
|
|
9,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
Token {
|
|
|
|
kind: RightBrace,
|
|
|
|
span: (
|
|
|
|
10,
|
|
|
|
1,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
]
|