php-kilo/tests/__snapshots__/EditorTest__testOpenPHP__1.json

4398 lines
99 KiB
JSON
Raw Normal View History

{
"rows": [
{
"render": "<?php declare(strict_types=1);",
"hl": [
9,
9,
9,
9,
9,
9,
3,
3,
3,
3,
3,
3,
3,
9,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
7,
6,
9,
7
],
"idx": 0
},
{
"render": "",
"hl": [],
"idx": 1
},
{
"render": "interface Ifoo {}",
"hl": [
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
9,
9
],
"idx": 2
},
{
"render": "",
"hl": [],
"idx": 3
},
{
"render": "abstract class Foo implements Ifoo {",
"hl": [
3,
3,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
9
],
"idx": 4
},
{
"render": " \/**",
"hl": [
0,
0,
0,
0,
2,
2,
2
],
"idx": 5
},
{
"render": " * @param int $a",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 6
},
{
"render": " * @param float $b",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 7
},
{
"render": " * @param array $c",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 8
},
{
"render": " * @param callable $d",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 9
},
{
"render": " * @return string",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 10
},
{
"render": " *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2
],
"idx": 11
},
{
"render": " abstract public function bar(int $a, float $b, array $c, callable $d): string;",
"hl": [
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
9,
4,
4,
4,
0,
8,
8,
7,
0,
4,
4,
4,
4,
4,
0,
8,
8,
7,
0,
9,
9,
9,
9,
9,
0,
8,
8,
7,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
9,
7,
0,
4,
4,
4,
4,
4,
4,
7
],
"idx": 12
},
{
"render": "",
"hl": [],
"idx": 13
},
{
"render": " protected function doNothing(): void {}",
"hl": [
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
9,
9,
7,
0,
4,
4,
4,
4,
0,
9,
9
],
"idx": 14
},
{
"render": "}",
"hl": [
9
],
"idx": 15
},
{
"render": "",
"hl": [],
"idx": 16
},
{
"render": "\/**",
"hl": [
2,
2,
2
],
"idx": 17
},
{
"render": " * Docblock comment",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 18
},
{
"render": " *\/",
"hl": [
2,
2,
2
],
"idx": 19
},
{
"render": "class FooBar extends Foo implements Ifoo {",
"hl": [
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
9
],
"idx": 20
},
{
"render": " public function bar(int $a, float $b, array $c, callable $d, string $e = 'default'): string",
"hl": [
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
9,
4,
4,
4,
0,
8,
8,
7,
0,
4,
4,
4,
4,
4,
0,
8,
8,
7,
0,
9,
9,
9,
9,
9,
0,
8,
8,
7,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
7,
0,
4,
4,
4,
4,
4,
4,
0,
8,
8,
0,
7,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
9,
7,
0,
4,
4,
4,
4,
4,
4
],
"idx": 21
},
{
"render": " {",
"hl": [
0,
0,
0,
0,
9
],
"idx": 22
},
{
"render": " $cstr = print_r($c, TRUE);",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
8,
8,
8,
0,
7,
0,
0,
0,
0,
0,
0,
0,
0,
9,
8,
8,
7,
0,
4,
4,
4,
4,
9,
7
],
"idx": 23
},
{
"render": " $d();",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
9,
9,
7
],
"idx": 24
},
{
"render": "",
"hl": [],
"idx": 25
},
{
"render": " return \"{$a}, ${b}, \" . $cstr;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
9,
9,
8,
8,
9,
5,
5,
9,
9,
8,
9,
5,
5,
9,
0,
7,
0,
8,
8,
8,
8,
8,
7
],
"idx": 26
},
{
"render": " }",
"hl": [
0,
0,
0,
0,
9
],
"idx": 27
},
{
"render": "",
"hl": [],
"idx": 28
},
{
"render": " private function operations(int $a, int $b): int",
"hl": [
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
9,
4,
4,
4,
0,
8,
8,
7,
0,
4,
4,
4,
0,
8,
8,
9,
7,
0,
4,
4,
4
],
"idx": 29
},
{
"render": " {",
"hl": [
0,
0,
0,
0,
9
],
"idx": 30
},
{
"render": " $this->doNothing();",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
8,
8,
8,
7,
7,
0,
0,
0,
0,
0,
0,
0,
0,
0,
9,
9,
7
],
"idx": 31
},
{
"render": "",
"hl": [],
"idx": 32
},
{
"render": " $c = $a + $b;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
0,
7,
0,
8,
8,
0,
7,
0,
8,
8,
7
],
"idx": 33
},
{
"render": " $a = $c - $b;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
0,
7,
0,
8,
8,
0,
7,
0,
8,
8,
7
],
"idx": 34
},
{
"render": "",
"hl": [],
"idx": 35
},
{
"render": " $c = $a * $b;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
0,
7,
0,
8,
8,
0,
7,
0,
8,
8,
7
],
"idx": 36
},
{
"render": " $b = (int) ($c \/ $a);",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
0,
7,
0,
4,
4,
4,
4,
4,
0,
9,
8,
8,
0,
7,
0,
8,
8,
9,
7
],
"idx": 37
},
{
"render": "",
"hl": [],
"idx": 38
},
{
"render": " return $c;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
8,
8,
7
],
"idx": 39
},
{
"render": " }",
"hl": [
0,
0,
0,
0,
9
],
"idx": 40
},
{
"render": "}",
"hl": [
9
],
"idx": 41
},
{
"render": "",
"hl": [],
"idx": 42
},
{
"render": "\/*",
"hl": [
2,
2
],
"idx": 43
},
{
"render": " * Multi-line comment",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 44
},
{
"render": " *\/",
"hl": [
2,
2,
2
],
"idx": 45
},
{
"render": "$foobar = new FooBar();",
"hl": [
8,
8,
8,
8,
8,
8,
8,
0,
7,
0,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
9,
9,
7
],
"idx": 46
},
{
"render": "",
"hl": [],
"idx": 47
},
{
"render": "$baz = ['a' => 'b'];",
"hl": [
8,
8,
8,
8,
0,
7,
0,
9,
5,
5,
5,
0,
7,
7,
0,
5,
5,
5,
9,
7
],
"idx": 48
},
{
"render": "",
"hl": [],
"idx": 49
},
{
"render": "\/\/ C++ style comment",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 50
},
{
"render": "$x = 3;",
"hl": [
8,
8,
0,
7,
0,
6,
7
],
"idx": 51
},
{
"render": "",
"hl": [],
"idx": 52
},
{
"render": "# Perl-style comment",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 53
},
{
"render": "$y = [",
"hl": [
8,
8,
0,
7,
0,
9
],
"idx": 54
},
{
"render": " 1,",
"hl": [
0,
0,
0,
0,
6,
7
],
"idx": 55
},
{
"render": " 2,",
"hl": [
0,
0,
0,
0,
6,
7
],
"idx": 56
},
{
"render": " 3",
"hl": [
0,
0,
0,
0,
6
],
"idx": 57
},
{
"render": "];",
"hl": [
9,
7
],
"idx": 58
},
{
"render": "",
"hl": [],
"idx": 59
},
{
"render": "\/\/ Multi-line ternary statement",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 60
},
{
"render": "$q = ($x !== 2)",
"hl": [
8,
8,
0,
7,
0,
9,
8,
8,
0,
7,
7,
7,
0,
6,
9
],
"idx": 61
},
{
"render": " ? 'yes'",
"hl": [
0,
0,
0,
0,
7,
0,
5,
5,
5,
5,
5
],
"idx": 62
},
{
"render": " : 'no';",
"hl": [
0,
0,
0,
0,
7,
0,
5,
5,
5,
5,
7
],
"idx": 63
},
{
"render": "",
"hl": [],
"idx": 64
},
{
"render": "\/*",
"hl": [
2,
2
],
"idx": 65
},
{
"render": "Heredoc",
"hl": [
2,
2,
2,
2,
2,
2,
2
],
"idx": 66
},
{
"render": "*\/$z = $x + $y;",
"hl": [
2,
2,
8,
8,
0,
7,
0,
8,
8,
0,
7,
0,
8,
8,
7
],
"idx": 67
},
{
"render": "$sql = <<<SQL",
"hl": [
8,
8,
8,
8,
0,
7,
0,
9,
9,
9,
9,
9,
9
],
"idx": 68
},
{
"render": " SELECT * FROM \"foo\" WHERE \"bar\"='baz' AND id={$x};",
"hl": [
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
9,
8,
8,
9,
5
],
"idx": 69
},
{
"render": "SQL;",
"hl": [
9,
9,
9,
7
],
"idx": 70
},
{
"render": "",
"hl": [],
"idx": 71
},
{
"render": "\/* Nowdoc *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 72
},
{
"render": "$template = <<<'TEMPLATE'",
"hl": [
8,
8,
8,
8,
8,
8,
8,
8,
8,
0,
7,
0,
9,
9,
9,
9,
9,
9,
9,
9,
9,
9,
9,
9,
9
],
"idx": 73
},
{
"render": " <foo>{x}<\/foo>",
"hl": [
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5
],
"idx": 74
},
{
"render": "TEMPLATE;",
"hl": [
9,
9,
9,
9,
9,
9,
9,
9,
7
],
"idx": 75
},
{
"render": "",
"hl": [],
"idx": 76
},
{
"render": "?>",
"hl": [
9,
9
],
"idx": 77
},
{
"render": "<html lang=\"en\">",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 78
},
{
"render": "<body>",
"hl": [
0,
0,
0,
0,
0,
0
],
"idx": 79
},
{
"render": "<h1><?= $_SERVER['HTTP_HOST'] ?><\/h1>",
"hl": [
0,
0,
0,
0,
9,
9,
9,
0,
8,
8,
8,
8,
8,
8,
8,
8,
9,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
9,
0,
9,
9,
0,
0,
0,
0,
0
],
"idx": 80
},
{
"render": "<\/body>",
"hl": [
0,
0,
0,
0,
0,
0,
0
],
"idx": 81
},
{
"render": "<\/html>",
"hl": [
0,
0,
0,
0,
0,
0,
0
],
"idx": 82
},
{
"render": "<?php exit(); ?>",
"hl": [
9,
9,
9,
9,
9,
9,
0,
0,
0,
0,
9,
9,
7,
0,
9,
9
],
"idx": 83
}
],
"dirty": 0,
"filename": "test.php",
"syntax": {
"filetype": "PHP",
"filematch": [
".php",
"kilo"
],
"singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"keywords1": [
"?php",
"$this",
"__halt_compiler",
"abstract",
"and",
"array",
"as",
"break",
"callable",
"case",
"catch",
"class",
"clone",
"const",
"continue",
"declare",
"default",
"die",
"do",
"echo",
"else",
"elseif",
"empty",
"enddeclare",
"endfor",
"endforeach",
"endif",
"endswitch",
"endwhile",
"eval",
"exit",
"extends",
"final",
"finally",
"for",
"foreach",
"function",
"global",
"goto",
"if",
"implements",
"include",
"include_once",
"instanceof",
"insteadof",
"interface",
"isset",
"list",
"namespace",
"new",
"or",
"print",
"private",
"protected",
"public",
"require",
"require_once",
"return",
"static",
"switch",
"throw",
"trait",
"try",
"unset",
"use",
"var",
"while",
"xor",
"yield",
"yield from",
"__CLASS__",
"__DIR__",
"__FILE__",
"__FUNCTION__",
"__LINE__",
"__METHOD__",
"__NAMESPACE__",
"__TRAIT__"
],
"keywords2": [
"int",
"float",
"bool",
"string",
"true",
"TRUE",
"false",
"FALSE",
"null",
"NULL",
"void",
"iterable",
"object",
"strict_types"
],
"tokens": [],
"flags": 3
},
"tokens": {
"1": [
{
"type": 382,
"typeName": "T_OPEN_TAG",
"char": "<?php ",
"line": 1
},
{
"type": 332,
"typeName": "T_DECLARE",
"char": "declare",
"line": 1
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 311,
"typeName": "T_STRING",
"char": "strict_types",
"line": 1
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 1
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 1
}
],
"2": [],
"3": [
{
"type": 366,
"typeName": "T_INTERFACE",
"char": "interface",
"line": 3
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 3
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Ifoo",
"line": 3
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 3
},
{
"type": -1,
"typeName": "RAW",
"char": "{"
},
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 3
}
],
"4": [],
"5": [
{
"type": 354,
"typeName": "T_ABSTRACT",
"char": "abstract",
"line": 5
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 364,
"typeName": "T_CLASS",
"char": "class",
"line": 5
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Foo",
"line": 5
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 368,
"typeName": "T_IMPLEMENTS",
"char": "implements",
"line": 5
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Ifoo",
"line": 5
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": -1,
"typeName": "RAW",
"char": "{"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 5
}
],
"6": [
{
"type": 381,
"typeName": "T_DOC_COMMENT",
"char": "\/**",
"line": 6,
"original": {
"string": "\/**\n * @param int $a\n * @param float $b\n * @param array $c\n * @param callable $d\n * @return string\n *\/",
"lines": [
"\/**",
" * @param int $a",
" * @param float $b",
" * @param array $c",
" * @param callable $d",
" * @return string",
" *\/"
]
}
}
],
"7": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param int $a"
}
],
"8": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param float $b"
}
],
"9": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param array $c"
}
],
"10": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param callable $d"
}
],
"11": [
{
"type": -1,
"typeName": "RAW",
"char": " * @return string"
}
],
"12": [
{
"type": -1,
"typeName": "RAW",
"char": " *\/"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 12
}
],
"13": [
{
"type": 354,
"typeName": "T_ABSTRACT",
"char": "abstract",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 358,
"typeName": "T_PUBLIC",
"char": "public",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 342,
"typeName": "T_FUNCTION",
"char": "function",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 311,
"typeName": "T_STRING",
"char": "bar",
"line": 13
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 13
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 311,
"typeName": "T_STRING",
"char": "float",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 13
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 371,
"typeName": "T_ARRAY",
"char": "array",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 13
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 372,
"typeName": "T_CALLABLE",
"char": "callable",
"line": 13
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$d",
"line": 13
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ":"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 13
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 13
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 13
}
],
"14": [],
"15": [
{
"type": 357,
"typeName": "T_PROTECTED",
"char": "protected",
"line": 15
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 15
},
{
"type": 342,
"typeName": "T_FUNCTION",
"char": "function",
"line": 15
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 15
},
{
"type": 311,
"typeName": "T_STRING",
"char": "doNothing",
"line": 15
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ":"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 15
},
{
"type": 311,
"typeName": "T_STRING",
"char": "void",
"line": 15
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 15
},
{
"type": -1,
"typeName": "RAW",
"char": "{"
},
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 15
}
],
"16": [
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 16
}
],
"17": [],
"18": [
{
"type": 381,
"typeName": "T_DOC_COMMENT",
"char": "\/**",
"line": 18,
"original": {
"string": "\/**\n * Docblock comment\n *\/",
"lines": [
"\/**",
" * Docblock comment",
" *\/"
]
}
}
],
"19": [
{
"type": -1,
"typeName": "RAW",
"char": " * Docblock comment"
}
],
"20": [
{
"type": -1,
"typeName": "RAW",
"char": " *\/"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 20
}
],
"21": [
{
"type": 364,
"typeName": "T_CLASS",
"char": "class",
"line": 21
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 21
},
{
"type": 311,
"typeName": "T_STRING",
"char": "FooBar",
"line": 21
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 21
},
{
"type": 367,
"typeName": "T_EXTENDS",
"char": "extends",
"line": 21
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 21
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Foo",
"line": 21
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 21
},
{
"type": 368,
"typeName": "T_IMPLEMENTS",
"char": "implements",
"line": 21
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 21
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Ifoo",
"line": 21
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 21
},
{
"type": -1,
"typeName": "RAW",
"char": "{"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 21
}
],
"22": [
{
"type": 358,
"typeName": "T_PUBLIC",
"char": "public",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 342,
"typeName": "T_FUNCTION",
"char": "function",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 311,
"typeName": "T_STRING",
"char": "bar",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 311,
"typeName": "T_STRING",
"char": "float",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 371,
"typeName": "T_ARRAY",
"char": "array",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 372,
"typeName": "T_CALLABLE",
"char": "callable",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$d",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$e",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 315,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'default'",
"line": 22
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ":"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 22
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 22
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 22
}
],
"23": [
{
"type": -1,
"typeName": "RAW",
"char": "{"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 23
}
],
"24": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$cstr",
"line": 24
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 24
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 24
},
{
"type": 311,
"typeName": "T_STRING",
"char": "print_r",
"line": 24
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 24
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 24
},
{
"type": 311,
"typeName": "T_STRING",
"char": "TRUE",
"line": 24
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 24
}
],
"25": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$d",
"line": 25
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 25
}
],
"26": [],
"27": [
{
"type": 345,
"typeName": "T_RETURN",
"char": "return",
"line": 27
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": -1,
"typeName": "RAW",
"char": "\""
},
{
"type": 389,
"typeName": "T_CURLY_OPEN",
"char": "{",
"line": 27
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 27
},
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 314,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": ", ",
"line": 27
},
{
"type": 388,
"typeName": "T_DOLLAR_OPEN_CURLY_BRACES",
"char": "${",
"line": 27
},
{
"type": 316,
"typeName": "T_STRING_VARNAME",
"char": "b",
"line": 27
},
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 314,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": ", ",
"line": 27
},
{
"type": -1,
"typeName": "RAW",
"char": "\""
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": -1,
"typeName": "RAW",
"char": "."
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$cstr",
"line": 27
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 27
}
],
"28": [
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 28
}
],
"29": [],
"30": [
{
"type": 356,
"typeName": "T_PRIVATE",
"char": "private",
"line": 30
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 30
},
{
"type": 342,
"typeName": "T_FUNCTION",
"char": "function",
"line": 30
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 30
},
{
"type": 311,
"typeName": "T_STRING",
"char": "operations",
"line": 30
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 30
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 30
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 30
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 30
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 30
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 30
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 30
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ":"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 30
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 30
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 30
}
],
"31": [
{
"type": -1,
"typeName": "RAW",
"char": "{"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 31
}
],
"32": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$this",
"line": 32
},
{
"type": 369,
"typeName": "T_OBJECT_OPERATOR",
"char": "->",
"line": 32
},
{
"type": 311,
"typeName": "T_STRING",
"char": "doNothing",
"line": 32
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 32
}
],
"33": [],
"34": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 34
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 34
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 34
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 34
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 34
},
{
"type": -1,
"typeName": "RAW",
"char": "+"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 34
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 34
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 34
}
],
"35": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 35
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 35
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": -1,
"typeName": "RAW",
"char": "-"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 35
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 35
}
],
"36": [],
"37": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 37
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 37
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 37
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 37
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 37
},
{
"type": -1,
"typeName": "RAW",
"char": "*"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 37
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 37
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 37
}
],
"38": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 38
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 38
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 38
},
{
"type": 296,
"typeName": "T_INT_CAST",
"char": "(int)",
"line": 38
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 38
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 38
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 38
},
{
"type": -1,
"typeName": "RAW",
"char": "\/"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 38
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 38
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 38
}
],
"39": [],
"40": [
{
"type": 345,
"typeName": "T_RETURN",
"char": "return",
"line": 40
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 40
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 40
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 40
}
],
"41": [
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 41
}
],
"42": [
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 42
}
],
"43": [],
"44": [
{
"type": 380,
"typeName": "T_COMMENT",
"char": "\/*",
"line": 44,
"original": {
"string": "\/*\n * Multi-line comment\n *\/",
"lines": [
"\/*",
" * Multi-line comment",
" *\/"
]
}
}
],
"45": [
{
"type": -1,
"typeName": "RAW",
"char": " * Multi-line comment"
}
],
"46": [
{
"type": -1,
"typeName": "RAW",
"char": " *\/"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 46
}
],
"47": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$foobar",
"line": 47
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 47
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 47
},
{
"type": 304,
"typeName": "T_NEW",
"char": "new",
"line": 47
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 47
},
{
"type": 311,
"typeName": "T_STRING",
"char": "FooBar",
"line": 47
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 47
}
],
"48": [],
"49": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$baz",
"line": 49
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 49
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 49
},
{
"type": -1,
"typeName": "RAW",
"char": "["
},
{
"type": 315,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'a'",
"line": 49
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 49
},
{
"type": 268,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 49
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 49
},
{
"type": 315,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'b'",
"line": 49
},
{
"type": -1,
"typeName": "RAW",
"char": "]"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 49
}
],
"50": [],
"51": [
{
"type": 380,
"typeName": "T_COMMENT",
"char": "\/\/ C++ style comment",
"line": 51,
"original": {
"string": "\/\/ C++ style comment\n",
"lines": [
"\/\/ C++ style comment",
""
]
}
}
],
"52": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 52
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 52
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 52
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "3",
"line": 52
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 52
}
],
"53": [],
"54": [
{
"type": 380,
"typeName": "T_COMMENT",
"char": "# Perl-style comment",
"line": 54,
"original": {
"string": "# Perl-style comment\n",
"lines": [
"# Perl-style comment",
""
]
}
}
],
"55": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$y",
"line": 55
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 55
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 55
},
{
"type": -1,
"typeName": "RAW",
"char": "["
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 55
}
],
"56": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 56
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 56
}
],
"57": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "2",
"line": 57
},
{
"type": -1,
"typeName": "RAW",
"char": ","
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 57
}
],
"58": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "3",
"line": 58
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 58
}
],
"59": [
{
"type": -1,
"typeName": "RAW",
"char": "]"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 59
}
],
"60": [],
"61": [
{
"type": 380,
"typeName": "T_COMMENT",
"char": "\/\/ Multi-line ternary statement",
"line": 61,
"original": {
"string": "\/\/ Multi-line ternary statement\n",
"lines": [
"\/\/ Multi-line ternary statement",
""
]
}
}
],
"62": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$q",
"line": 62
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 62
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 62
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 62
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 62
},
{
"type": 289,
"typeName": "T_IS_NOT_IDENTICAL",
"char": "!==",
"line": 62
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 62
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "2",
"line": 62
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 62
}
],
"63": [
{
"type": -1,
"typeName": "RAW",
"char": "?"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 63
},
{
"type": 315,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'yes'",
"line": 63
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 63
}
],
"64": [
{
"type": -1,
"typeName": "RAW",
"char": ":"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 64
},
{
"type": 315,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'no'",
"line": 64
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 64
}
],
"65": [],
"66": [
{
"type": 380,
"typeName": "T_COMMENT",
"char": "\/*",
"line": 66,
"original": {
"string": "\/*\nHeredoc\n*\/",
"lines": [
"\/*",
"Heredoc",
"*\/"
]
}
}
],
"67": [
{
"type": -1,
"typeName": "RAW",
"char": "Heredoc"
}
],
"68": [
{
"type": -1,
"typeName": "RAW",
"char": "*\/"
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$z",
"line": 68
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 68
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 68
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 68
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 68
},
{
"type": -1,
"typeName": "RAW",
"char": "+"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 68
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$y",
"line": 68
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 68
}
],
"69": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$sql",
"line": 69
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 386,
"typeName": "T_START_HEREDOC",
"char": "<<<SQL",
"line": 69,
"original": {
"string": "<<<SQL\n",
"lines": [
"<<<SQL",
""
]
}
}
],
"70": [
{
"type": 314,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": " SELECT * FROM \"foo\" WHERE \"bar\"='baz' AND id=",
"line": 70
},
{
"type": 389,
"typeName": "T_CURLY_OPEN",
"char": "{",
"line": 70
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 70
},
{
"type": -1,
"typeName": "RAW",
"char": "}"
},
{
"type": 314,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": ";",
"line": 70,
"original": {
"string": ";\n",
"lines": [
";",
""
]
}
}
],
"71": [
{
"type": 387,
"typeName": "T_END_HEREDOC",
"char": "SQL",
"line": 71
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 71
}
],
"72": [],
"73": [
{
"type": 380,
"typeName": "T_COMMENT",
"char": "\/* Nowdoc *\/",
"line": 73
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 73
}
],
"74": [
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$template",
"line": 74
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 74
},
{
"type": -1,
"typeName": "RAW",
"char": "="
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 74
},
{
"type": 386,
"typeName": "T_START_HEREDOC",
"char": "<<<'TEMPLATE'",
"line": 74,
"original": {
"string": "<<<'TEMPLATE'\n",
"lines": [
"<<<'TEMPLATE'",
""
]
}
}
],
"75": [
{
"type": 314,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": " <foo>{x}<\/foo>",
"line": 75,
"original": {
"string": " <foo>{x}<\/foo>\n",
"lines": [
" <foo>{x}<\/foo>",
""
]
}
}
],
"76": [
{
"type": 387,
"typeName": "T_END_HEREDOC",
"char": "TEMPLATE",
"line": 76
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 76
}
],
"77": [],
"78": [
{
"type": 384,
"typeName": "T_CLOSE_TAG",
"char": "?>",
"line": 78,
"original": {
"string": "?>\n",
"lines": [
"?>",
""
]
}
}
],
"79": [
{
"type": 313,
"typeName": "T_INLINE_HTML",
"char": "<html lang=\"en\">",
"line": 79,
"original": {
"string": "<html lang=\"en\">\n<body>\n<h1>",
"lines": [
"<html lang=\"en\">",
"<body>",
"<h1>"
]
}
}
],
"80": [
{
"type": -1,
"typeName": "RAW",
"char": "<body>"
}
],
"81": [
{
"type": -1,
"typeName": "RAW",
"char": "<h1>"
},
{
"type": 383,
"typeName": "T_OPEN_TAG_WITH_ECHO",
"char": "<?=",
"line": 81
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 81
},
{
"type": 312,
"typeName": "T_VARIABLE",
"char": "$_SERVER",
"line": 81
},
{
"type": -1,
"typeName": "RAW",
"char": "["
},
{
"type": 315,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'HTTP_HOST'",
"line": 81
},
{
"type": -1,
"typeName": "RAW",
"char": "]"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 81
},
{
"type": 384,
"typeName": "T_CLOSE_TAG",
"char": "?>",
"line": 81
},
{
"type": 313,
"typeName": "T_INLINE_HTML",
"char": "<\/h1>",
"line": 81,
"original": {
"string": "<\/h1>\n<\/body>\n<\/html>\n",
"lines": [
"<\/h1>",
"<\/body>",
"<\/html>",
""
]
}
}
],
"82": [
{
"type": -1,
"typeName": "RAW",
"char": "<\/body>"
}
],
"83": [
{
"type": -1,
"typeName": "RAW",
"char": "<\/html>"
}
],
"84": [
{
"type": 382,
"typeName": "T_OPEN_TAG",
"char": "<?php ",
"line": 84
},
{
"type": 321,
"typeName": "T_EXIT",
"char": "exit",
"line": 84
},
{
"type": -1,
"typeName": "RAW",
"char": "("
},
{
"type": -1,
"typeName": "RAW",
"char": ")"
},
{
"type": -1,
"typeName": "RAW",
"char": ";"
},
{
"type": 385,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 84
},
{
"type": 384,
"typeName": "T_CLOSE_TAG",
"char": "?>",
"line": 84
}
]
}
}