parser/tests/0197/tokens.txt
2022-12-04 08:56:53 +00:00

233 lines
3.3 KiB
Plaintext

[
Token {
kind: OpenTag(
Full,
),
span: (
1,
1,
),
},
Token {
kind: Variable(
"a",
),
span: (
4,
1,
),
},
Token {
kind: Equals,
span: (
4,
4,
),
},
Token {
kind: LiteralInteger(
4,
),
span: (
4,
6,
),
},
Token {
kind: SemiColon,
span: (
4,
7,
),
},
Token {
kind: Variable(
"b",
),
span: (
6,
1,
),
},
Token {
kind: Equals,
span: (
6,
4,
),
},
Token {
kind: Match,
span: (
6,
6,
),
},
Token {
kind: LeftParen,
span: (
6,
12,
),
},
Token {
kind: Variable(
"a",
),
span: (
6,
13,
),
},
Token {
kind: RightParen,
span: (
6,
15,
),
},
Token {
kind: LeftBrace,
span: (
6,
17,
),
},
Token {
kind: LiteralInteger(
1,
),
span: (
7,
5,
),
},
Token {
kind: Comma,
span: (
7,
6,
),
},
Token {
kind: LiteralInteger(
2,
),
span: (
7,
7,
),
},
Token {
kind: Comma,
span: (
7,
8,
),
},
Token {
kind: LiteralInteger(
3,
),
span: (
7,
9,
),
},
Token {
kind: Comma,
span: (
7,
10,
),
},
Token {
kind: LiteralInteger(
4,
),
span: (
7,
11,
),
},
Token {
kind: DoubleArrow,
span: (
7,
13,
),
},
Token {
kind: Null,
span: (
7,
16,
),
},
Token {
kind: Comma,
span: (
7,
20,
),
},
Token {
kind: Comment(
"// seems weird, but PHP considers this valid.",
),
span: (
8,
5,
),
},
Token {
kind: Default,
span: (
9,
5,
),
},
Token {
kind: Comma,
span: (
9,
12,
),
},
Token {
kind: DoubleArrow,
span: (
9,
14,
),
},
Token {
kind: Null,
span: (
9,
17,
),
},
Token {
kind: Comma,
span: (
9,
21,
),
},
Token {
kind: RightBrace,
span: (
10,
1,
),
},
Token {
kind: SemiColon,
span: (
10,
2,
),
},
]