php-kilo/tests/__snapshots__/EditorTest__testOpenPHP__1.json
Timothy Warren d92ca27880
All checks were successful
timw4mail/php-kilo/pipeline/head This commit looks good
Update more snapshot tests
2021-03-17 15:43:24 -04:00

6839 lines
181 KiB
JSON

{
"cursor": {
"x": 0,
"y": 0
},
"document": {
"fileType": {
"name": "PHP",
"syntax": {
"tokens": [],
"filetype": "PHP",
"keywords1": [],
"keywords2": [],
"singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"flags": 3
}
},
"tokens": {
"1": [
{
"type": 390,
"typeName": "T_OPEN_TAG",
"char": "<?php ",
"line": 1
},
{
"type": 334,
"typeName": "T_DECLARE",
"char": "declare",
"line": 1
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 1
},
{
"type": 311,
"typeName": "T_STRING",
"char": "strict_types",
"line": 1
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 1
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 1
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 1
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 1
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 1
}
],
"2": [],
"3": [
{
"type": 368,
"typeName": "T_INTERFACE",
"char": "interface",
"line": 3
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 3
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Ifoo",
"line": 3
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 3
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 3
},
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 3
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 3
}
],
"4": [],
"5": [
{
"type": 356,
"typeName": "T_ABSTRACT",
"char": "abstract",
"line": 5
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 366,
"typeName": "T_CLASS",
"char": "class",
"line": 5
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Foo",
"line": 5
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 370,
"typeName": "T_IMPLEMENTS",
"char": "implements",
"line": 5
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Ifoo",
"line": 5
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 5
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 5
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 5
}
],
"6": [
{
"type": 389,
"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 * @param string $e\n * @return string\n *\/",
"lines": [
"\/**",
" * @param int $a",
" * @param float $b",
" * @param array $c",
" * @param callable $d",
" * @param string $e",
" * @return string",
" *\/"
]
}
}
],
"7": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param int $a",
"line": 7
}
],
"8": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param float $b",
"line": 8
}
],
"9": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param array $c",
"line": 9
}
],
"10": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param callable $d",
"line": 10
}
],
"11": [
{
"type": -1,
"typeName": "RAW",
"char": " * @param string $e",
"line": 11
}
],
"12": [
{
"type": -1,
"typeName": "RAW",
"char": " * @return string",
"line": 12
}
],
"13": [
{
"type": -1,
"typeName": "RAW",
"char": " *\/",
"line": 13
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 13
}
],
"14": [
{
"type": 356,
"typeName": "T_ABSTRACT",
"char": "abstract",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 360,
"typeName": "T_PUBLIC",
"char": "public",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 345,
"typeName": "T_FUNCTION",
"char": "function",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 311,
"typeName": "T_STRING",
"char": "bar",
"line": 14
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 14
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 14
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 311,
"typeName": "T_STRING",
"char": "float",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 14
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 373,
"typeName": "T_ARRAY",
"char": "array",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 14
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 374,
"typeName": "T_CALLABLE",
"char": "callable",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$d",
"line": 14
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$e",
"line": 14
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 14
},
{
"type": 58,
"typeName": ":",
"char": ":",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 14
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 14
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 14
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 14
}
],
"15": [],
"16": [
{
"type": 359,
"typeName": "T_PROTECTED",
"char": "protected",
"line": 16
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 16
},
{
"type": 345,
"typeName": "T_FUNCTION",
"char": "function",
"line": 16
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 16
},
{
"type": 311,
"typeName": "T_STRING",
"char": "doNothing",
"line": 16
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 16
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 16
},
{
"type": 58,
"typeName": ":",
"char": ":",
"line": 16
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 16
},
{
"type": 311,
"typeName": "T_STRING",
"char": "void",
"line": 16
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 16
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 16
},
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 16
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 16
}
],
"17": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 17
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 17
}
],
"18": [],
"19": [
{
"type": 366,
"typeName": "T_CLASS",
"char": "class",
"line": 19
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 19
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Test",
"line": 19
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 19
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 19
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 19
}
],
"20": [
{
"type": 360,
"typeName": "T_PUBLIC",
"char": "public",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 345,
"typeName": "T_FUNCTION",
"char": "function",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 311,
"typeName": "T_STRING",
"char": "__construct",
"line": 20
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 20
},
{
"type": 360,
"typeName": "T_PUBLIC",
"char": "public",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$foo",
"line": 20
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 360,
"typeName": "T_PUBLIC",
"char": "public",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$bar",
"line": 20
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 20
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 20
},
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 20
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 20
}
],
"21": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 21
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 21
}
],
"22": [],
"23": [
{
"type": 389,
"typeName": "T_DOC_COMMENT",
"char": "\/**",
"line": 23,
"original": {
"string": "\/**\n * Docblock comment\n *\/",
"lines": [
"\/**",
" * Docblock comment",
" *\/"
]
}
}
],
"24": [
{
"type": -1,
"typeName": "RAW",
"char": " * Docblock comment",
"line": 24
}
],
"25": [
{
"type": -1,
"typeName": "RAW",
"char": " *\/",
"line": 25
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 25
}
],
"26": [
{
"type": 366,
"typeName": "T_CLASS",
"char": "class",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 26
},
{
"type": 311,
"typeName": "T_STRING",
"char": "FooBar",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 26
},
{
"type": 369,
"typeName": "T_EXTENDS",
"char": "extends",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 26
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Foo",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 26
},
{
"type": 370,
"typeName": "T_IMPLEMENTS",
"char": "implements",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 26
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Ifoo",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 26
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 26
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 26
}
],
"27": [
{
"type": 360,
"typeName": "T_PUBLIC",
"char": "public",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 345,
"typeName": "T_FUNCTION",
"char": "function",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 311,
"typeName": "T_STRING",
"char": "bar",
"line": 27
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 27
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 27
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 311,
"typeName": "T_STRING",
"char": "float",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 27
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 373,
"typeName": "T_ARRAY",
"char": "array",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 27
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 374,
"typeName": "T_CALLABLE",
"char": "callable",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$d",
"line": 27
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$e",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'default'",
"line": 27
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 27
},
{
"type": 58,
"typeName": ":",
"char": ":",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 27
},
{
"type": 311,
"typeName": "T_STRING",
"char": "string",
"line": 27
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 27
}
],
"28": [
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 28
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 28
}
],
"29": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$cstr",
"line": 29
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 29
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 29
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 29
},
{
"type": 311,
"typeName": "T_STRING",
"char": "print_r",
"line": 29
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 29
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 29
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 29
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 29
},
{
"type": 311,
"typeName": "T_STRING",
"char": "TRUE",
"line": 29
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 29
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 29
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 29
}
],
"30": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$d",
"line": 30
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 30
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 30
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 30
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 30
}
],
"31": [],
"32": [
{
"type": 348,
"typeName": "T_RETURN",
"char": "return",
"line": 32
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 32
},
{
"type": 34,
"typeName": "\"",
"char": "\"",
"line": 32
},
{
"type": 397,
"typeName": "T_CURLY_OPEN",
"char": "{",
"line": 32
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 32
},
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 32
},
{
"type": 317,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": ", ",
"line": 32
},
{
"type": 396,
"typeName": "T_DOLLAR_OPEN_CURLY_BRACES",
"char": "${",
"line": 32
},
{
"type": 319,
"typeName": "T_STRING_VARNAME",
"char": "b",
"line": 32
},
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 32
},
{
"type": 317,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": ", ",
"line": 32
},
{
"type": 34,
"typeName": "\"",
"char": "\"",
"line": 32
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 32
},
{
"type": 46,
"typeName": ".",
"char": ".",
"line": 32
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 32
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$cstr",
"line": 32
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 32
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 32
}
],
"33": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 33
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 33
}
],
"34": [],
"35": [
{
"type": 358,
"typeName": "T_PRIVATE",
"char": "private",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 345,
"typeName": "T_FUNCTION",
"char": "function",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 311,
"typeName": "T_STRING",
"char": "operations",
"line": 35
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 35
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 35
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 35
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 35
},
{
"type": 58,
"typeName": ":",
"char": ":",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 35
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 35
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 35
}
],
"36": [
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 36
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 36
}
],
"37": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$this",
"line": 37
},
{
"type": 387,
"typeName": "T_NULLSAFE_OBJECT_OPERATOR",
"char": "?->",
"line": 37
},
{
"type": 311,
"typeName": "T_STRING",
"char": "x",
"line": 37
},
{
"type": 387,
"typeName": "T_NULLSAFE_OBJECT_OPERATOR",
"char": "?->",
"line": 37
},
{
"type": 311,
"typeName": "T_STRING",
"char": "bar",
"line": 37
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 37
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 37
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 37
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 37
}
],
"38": [],
"39": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$this",
"line": 39
},
{
"type": 386,
"typeName": "T_OBJECT_OPERATOR",
"char": "->",
"line": 39
},
{
"type": 311,
"typeName": "T_STRING",
"char": "doNothing",
"line": 39
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 39
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 39
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 39
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 39
}
],
"40": [],
"41": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 41
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 41
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 41
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 41
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 41
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 41
},
{
"type": 43,
"typeName": "+",
"char": "+",
"line": 41
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 41
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 41
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 41
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 41
}
],
"42": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 42
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 42
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 42
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 42
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 42
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 42
},
{
"type": 45,
"typeName": "-",
"char": "-",
"line": 42
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 42
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 42
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 42
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 42
}
],
"43": [],
"44": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 44
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 44
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 44
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 44
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 44
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 44
},
{
"type": 42,
"typeName": "*",
"char": "*",
"line": 44
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 44
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 44
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 44
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 44
}
],
"45": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$b",
"line": 45
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 45
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 45
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 45
},
{
"type": 297,
"typeName": "T_INT_CAST",
"char": "(int)",
"line": 45
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 45
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 45
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 45
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 45
},
{
"type": 47,
"typeName": "\/",
"char": "\/",
"line": 45
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 45
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$a",
"line": 45
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 45
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 45
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n ",
"line": 45
}
],
"46": [],
"47": [
{
"type": 348,
"typeName": "T_RETURN",
"char": "return",
"line": 47
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 47
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$c",
"line": 47
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 47
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 47
}
],
"48": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 48
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 48
}
],
"49": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 49
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 49
}
],
"50": [],
"51": [
{
"type": 367,
"typeName": "T_TRAIT",
"char": "trait",
"line": 51
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 51
},
{
"type": 311,
"typeName": "T_STRING",
"char": "Baz",
"line": 51
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 51
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 51
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 51
}
],
"52": [
{
"type": 360,
"typeName": "T_PUBLIC",
"char": "public",
"line": 52
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 52
},
{
"type": 345,
"typeName": "T_FUNCTION",
"char": "function",
"line": 52
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 52
},
{
"type": 311,
"typeName": "T_STRING",
"char": "about",
"line": 52
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 52
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 52
},
{
"type": 58,
"typeName": ":",
"char": ":",
"line": 52
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 52
},
{
"type": 373,
"typeName": "T_ARRAY",
"char": "array",
"line": 52
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 52
}
],
"53": [
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 53
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 53
}
],
"54": [
{
"type": 348,
"typeName": "T_RETURN",
"char": "return",
"line": 54
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 54
},
{
"type": 91,
"typeName": "[",
"char": "[",
"line": 54
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 54
}
],
"55": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__CLASS__'",
"line": 55
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 55
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 55
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 55
},
{
"type": 378,
"typeName": "T_CLASS_C",
"char": "__CLASS__",
"line": 55
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 55
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 55
}
],
"56": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__DIR__'",
"line": 56
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 56
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 56
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 56
},
{
"type": 377,
"typeName": "T_DIR",
"char": "__DIR__",
"line": 56
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 56
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 56
}
],
"57": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__FILE__'",
"line": 57
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 57
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 57
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 57
},
{
"type": 376,
"typeName": "T_FILE",
"char": "__FILE__",
"line": 57
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 57
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 57
}
],
"58": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__FUNCTION__'",
"line": 58
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 58
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 58
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 58
},
{
"type": 381,
"typeName": "T_FUNC_C",
"char": "__FUNCTION__",
"line": 58
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 58
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 58
}
],
"59": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__LINE__'",
"line": 59
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 59
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 59
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 59
},
{
"type": 375,
"typeName": "T_LINE",
"char": "__LINE__",
"line": 59
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 59
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 59
}
],
"60": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__METHOD__'",
"line": 60
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 60
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 60
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 60
},
{
"type": 380,
"typeName": "T_METHOD_C",
"char": "__METHOD__",
"line": 60
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 60
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 60
}
],
"61": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__NAMESPACE__'",
"line": 61
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 61
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 61
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 61
},
{
"type": 382,
"typeName": "T_NS_C",
"char": "__NAMESPACE__",
"line": 61
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 61
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 61
}
],
"62": [
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'__TRAIT__'",
"line": 62
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 62
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 62
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 62
},
{
"type": 379,
"typeName": "T_TRAIT_C",
"char": "__TRAIT__",
"line": 62
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 62
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 62
}
],
"63": [
{
"type": 93,
"typeName": "]",
"char": "]",
"line": 63
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 63
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 63
}
],
"64": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 64
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 64
}
],
"65": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 65
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 65
}
],
"66": [],
"67": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$square",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 346,
"typeName": "T_FN",
"char": "fn",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 67
},
{
"type": 311,
"typeName": "T_STRING",
"char": "int",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 67
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 304,
"typeName": "T_POW",
"char": "**",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 67
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "2",
"line": 67
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 67
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 67
}
],
"68": [],
"69": [
{
"type": 332,
"typeName": "T_FOREACH",
"char": "foreach",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 69
},
{
"type": 91,
"typeName": "[",
"char": "[",
"line": 69
},
{
"type": 45,
"typeName": "-",
"char": "-",
"line": 69
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 69
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "0",
"line": 69
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 69
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "2",
"line": 69
},
{
"type": 93,
"typeName": "]",
"char": "]",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 336,
"typeName": "T_AS",
"char": "as",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 69
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 69
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 69
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 69
}
],
"70": [
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 70
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 70
}
],
"71": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$not",
"line": 71
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 71
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 71
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 71
},
{
"type": 341,
"typeName": "T_MATCH",
"char": "match",
"line": 71
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 71
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 71
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 71
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 71
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 71
},
{
"type": 123,
"typeName": "{",
"char": "{",
"line": 71
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 71
}
],
"72": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "0",
"line": 72
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 72
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 72
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 72
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 72
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 72
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 72
}
],
"73": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 73
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 73
},
{
"type": 45,
"typeName": "-",
"char": "-",
"line": 73
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 73
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 73
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 73
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 73
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "0",
"line": 73
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 73
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 73
}
],
"74": [
{
"type": 340,
"typeName": "T_DEFAULT",
"char": "default",
"line": 74
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 74
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 74
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 74
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "0",
"line": 74
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 74
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 74
}
],
"75": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 75
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 75
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 75
}
],
"76": [
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 76
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 76
}
],
"77": [],
"78": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "\/*",
"line": 78,
"original": {
"string": "\/*\n * Multi-line comment\n *\/",
"lines": [
"\/*",
" * Multi-line comment",
" *\/"
]
}
}
],
"79": [
{
"type": -1,
"typeName": "RAW",
"char": " * Multi-line comment",
"line": 79
}
],
"80": [
{
"type": -1,
"typeName": "RAW",
"char": " *\/",
"line": 80
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 80
}
],
"81": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$foobar",
"line": 81
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 81
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 81
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 81
},
{
"type": 322,
"typeName": "T_NEW",
"char": "new",
"line": 81
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 81
},
{
"type": 311,
"typeName": "T_STRING",
"char": "FooBar",
"line": 81
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 81
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 81
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 81
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 81
}
],
"82": [],
"83": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$baz",
"line": 83
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 83
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 83
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 83
},
{
"type": 91,
"typeName": "[",
"char": "[",
"line": 83
},
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'a'",
"line": 83
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 83
},
{
"type": 269,
"typeName": "T_DOUBLE_ARROW",
"char": "=>",
"line": 83
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 83
},
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'b'",
"line": 83
},
{
"type": 93,
"typeName": "]",
"char": "]",
"line": 83
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 83
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 83
}
],
"84": [],
"85": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "\/\/ C++ style comment",
"line": 85
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 85
}
],
"86": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 86
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 86
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 86
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 86
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "3",
"line": 86
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 86
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 86
}
],
"87": [],
"88": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "# Perl-style comment",
"line": 88
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 88
}
],
"89": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$y",
"line": 89
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 89
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 89
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 89
},
{
"type": 91,
"typeName": "[",
"char": "[",
"line": 89
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 89
}
],
"90": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "1",
"line": 90
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 90
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 90
}
],
"91": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "2",
"line": 91
},
{
"type": 44,
"typeName": ",",
"char": ",",
"line": 91
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 91
}
],
"92": [
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "3",
"line": 92
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 92
}
],
"93": [
{
"type": 93,
"typeName": "]",
"char": "]",
"line": 93
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 93
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 93
}
],
"94": [],
"95": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "\/\/ Multi-line ternary statement",
"line": 95
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 95
}
],
"96": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "#{Attribute]",
"line": 96
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 96
}
],
"97": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$q",
"line": 97
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 97
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 97
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 97
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 97
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 97
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 97
},
{
"type": 290,
"typeName": "T_IS_NOT_IDENTICAL",
"char": "!==",
"line": 97
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 97
},
{
"type": 309,
"typeName": "T_LNUMBER",
"char": "2",
"line": 97
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 97
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 97
}
],
"98": [
{
"type": 63,
"typeName": "?",
"char": "?",
"line": 98
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 98
},
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'yes'",
"line": 98
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n ",
"line": 98
}
],
"99": [
{
"type": 58,
"typeName": ":",
"char": ":",
"line": 99
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 99
},
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'no'",
"line": 99
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 99
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 99
}
],
"100": [],
"101": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "\/*",
"line": 101,
"original": {
"string": "\/*\nHeredoc\n*\/",
"lines": [
"\/*",
"Heredoc",
"*\/"
]
}
}
],
"102": [
{
"type": -1,
"typeName": "RAW",
"char": "Heredoc",
"line": 102
}
],
"103": [
{
"type": -1,
"typeName": "RAW",
"char": "*\/",
"line": 103
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$z",
"line": 103
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 103
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 103
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 103
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 103
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 103
},
{
"type": 43,
"typeName": "+",
"char": "+",
"line": 103
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 103
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$y",
"line": 103
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 103
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 103
}
],
"104": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$sql",
"line": 104
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 104
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 104
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 104
},
{
"type": 394,
"typeName": "T_START_HEREDOC",
"char": "<<<SQL",
"line": 104,
"original": {
"string": "<<<SQL\n",
"lines": [
"<<<SQL",
""
]
}
}
],
"105": [
{
"type": 317,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": " SELECT * FROM \"foo\" WHERE \"bar\"='baz' AND id=",
"line": 105
},
{
"type": 397,
"typeName": "T_CURLY_OPEN",
"char": "{",
"line": 105
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$x",
"line": 105
},
{
"type": 125,
"typeName": "}",
"char": "}",
"line": 105
},
{
"type": 317,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": ";",
"line": 105,
"original": {
"string": ";\n",
"lines": [
";",
""
]
}
}
],
"106": [
{
"type": 395,
"typeName": "T_END_HEREDOC",
"char": "SQL",
"line": 106
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 106
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 106
}
],
"107": [],
"108": [
{
"type": 388,
"typeName": "T_COMMENT",
"char": "\/* Nowdoc *\/",
"line": 108
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n",
"line": 108
}
],
"109": [
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$template",
"line": 109
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 109
},
{
"type": 61,
"typeName": "=",
"char": "=",
"line": 109
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 109
},
{
"type": 394,
"typeName": "T_START_HEREDOC",
"char": "<<<'TEMPLATE'",
"line": 109,
"original": {
"string": "<<<'TEMPLATE'\n",
"lines": [
"<<<'TEMPLATE'",
""
]
}
}
],
"110": [
{
"type": 317,
"typeName": "T_ENCAPSED_AND_WHITESPACE",
"char": " <foo>{x}<\/foo>",
"line": 110,
"original": {
"string": " <foo>{x}<\/foo>\n",
"lines": [
" <foo>{x}<\/foo>",
""
]
}
}
],
"111": [
{
"type": 395,
"typeName": "T_END_HEREDOC",
"char": "TEMPLATE",
"line": 111
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 111
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": "\n\n",
"line": 111
}
],
"112": [],
"113": [
{
"type": 392,
"typeName": "T_CLOSE_TAG",
"char": "?>",
"line": 113,
"original": {
"string": "?>\n",
"lines": [
"?>",
""
]
}
}
],
"114": [
{
"type": 316,
"typeName": "T_INLINE_HTML",
"char": "<!DOCTYPE html>",
"line": 114,
"original": {
"string": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<title>HTML<\/title>\n<\/head>\n<body>\n<h1>",
"lines": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
"<head>",
"<title>HTML<\/title>",
"<\/head>",
"<body>",
"<h1>"
]
}
}
],
"115": [
{
"type": -1,
"typeName": "RAW",
"char": "<html lang=\"en\">",
"line": 115
}
],
"116": [
{
"type": -1,
"typeName": "RAW",
"char": "<head>",
"line": 116
}
],
"117": [
{
"type": -1,
"typeName": "RAW",
"char": "<title>HTML<\/title>",
"line": 117
}
],
"118": [
{
"type": -1,
"typeName": "RAW",
"char": "<\/head>",
"line": 118
}
],
"119": [
{
"type": -1,
"typeName": "RAW",
"char": "<body>",
"line": 119
}
],
"120": [
{
"type": -1,
"typeName": "RAW",
"char": "<h1>",
"line": 120
},
{
"type": 391,
"typeName": "T_OPEN_TAG_WITH_ECHO",
"char": "<?=",
"line": 120
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 120
},
{
"type": 315,
"typeName": "T_VARIABLE",
"char": "$_SERVER",
"line": 120
},
{
"type": 91,
"typeName": "[",
"char": "[",
"line": 120
},
{
"type": 318,
"typeName": "T_CONSTANT_ENCAPSED_STRING",
"char": "'HTTP_HOST'",
"line": 120
},
{
"type": 93,
"typeName": "]",
"char": "]",
"line": 120
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 120
},
{
"type": 392,
"typeName": "T_CLOSE_TAG",
"char": "?>",
"line": 120
},
{
"type": 316,
"typeName": "T_INLINE_HTML",
"char": "<\/h1>",
"line": 120,
"original": {
"string": "<\/h1>\n<\/body>\n<\/html>\n",
"lines": [
"<\/h1>",
"<\/body>",
"<\/html>",
""
]
}
}
],
"121": [
{
"type": -1,
"typeName": "RAW",
"char": "<\/body>",
"line": 121
}
],
"122": [
{
"type": -1,
"typeName": "RAW",
"char": "<\/html>",
"line": 122
}
],
"123": [
{
"type": 390,
"typeName": "T_OPEN_TAG",
"char": "<?php ",
"line": 123
},
{
"type": 323,
"typeName": "T_EXIT",
"char": "exit",
"line": 123
},
{
"type": 40,
"typeName": "(",
"char": "(",
"line": 123
},
{
"type": 41,
"typeName": ")",
"char": ")",
"line": 123
},
{
"type": 59,
"typeName": ";",
"char": ";",
"line": 123
},
{
"type": 393,
"typeName": "T_WHITESPACE",
"char": " ",
"line": 123
},
{
"type": 392,
"typeName": "T_CLOSE_TAG",
"char": "?>",
"line": 123,
"original": {
"string": "?>\n",
"lines": [
"?>",
""
]
}
}
],
"124": []
},
"filename": "test.php",
"rows": [
{
"render": "<?php declare(strict_types=1);",
"hl": [
9,
9,
9,
9,
9,
9,
3,
3,
3,
3,
3,
3,
3,
9,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
7,
6,
9,
7
],
"idx": 0
},
{
"render": "",
"hl": [],
"idx": 1
},
{
"render": "interface Ifoo {}",
"hl": [
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
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,
12,
12,
12,
0,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
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": " * @param string $e",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 10
},
{
"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": 11
},
{
"render": " *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2
],
"idx": 12
},
{
"render": " abstract public function bar(int $a, float $b, array $c, callable $d, string $e): 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,
12,
12,
12,
9,
12,
12,
12,
0,
8,
8,
7,
0,
12,
12,
12,
12,
12,
0,
8,
8,
7,
0,
9,
9,
9,
9,
9,
0,
8,
8,
7,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
8,
8,
7,
0,
12,
12,
12,
12,
12,
12,
0,
8,
8,
9,
7,
0,
12,
12,
12,
12,
12,
12,
7
],
"idx": 13
},
{
"render": "",
"hl": [],
"idx": 14
},
{
"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,
12,
12,
12,
12,
12,
12,
12,
12,
12,
9,
9,
7,
0,
12,
12,
12,
12,
0,
9,
9
],
"idx": 15
},
{
"render": "}",
"hl": [
9
],
"idx": 16
},
{
"render": "",
"hl": [],
"idx": 17
},
{
"render": "class Test {",
"hl": [
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
0,
9
],
"idx": 18
},
{
"render": " public function __construct(public string $foo, public string $bar) {}",
"hl": [
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
9,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
12,
12,
0,
8,
8,
8,
8,
7,
0,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
12,
12,
0,
8,
8,
8,
8,
9,
0,
9,
9
],
"idx": 19
},
{
"render": "}",
"hl": [
9
],
"idx": 20
},
{
"render": "",
"hl": [],
"idx": 21
},
{
"render": "\/**",
"hl": [
2,
2,
2
],
"idx": 22
},
{
"render": " * Docblock comment",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 23
},
{
"render": " *\/",
"hl": [
2,
2,
2
],
"idx": 24
},
{
"render": "class FooBar extends Foo implements Ifoo {",
"hl": [
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
12,
12,
0,
3,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
0,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
0,
9
],
"idx": 25
},
{
"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,
12,
12,
12,
9,
12,
12,
12,
0,
8,
8,
7,
0,
12,
12,
12,
12,
12,
0,
8,
8,
7,
0,
9,
9,
9,
9,
9,
0,
8,
8,
7,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
8,
8,
7,
0,
12,
12,
12,
12,
12,
12,
0,
8,
8,
0,
7,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
9,
7,
0,
12,
12,
12,
12,
12,
12
],
"idx": 26
},
{
"render": " {",
"hl": [
0,
0,
0,
0,
9
],
"idx": 27
},
{
"render": " $cstr = print_r($c, TRUE);",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
8,
8,
8,
0,
7,
0,
12,
12,
12,
12,
12,
12,
12,
9,
8,
8,
7,
0,
12,
12,
12,
12,
9,
7
],
"idx": 28
},
{
"render": " $d();",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
9,
9,
7
],
"idx": 29
},
{
"render": "",
"hl": [],
"idx": 30
},
{
"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": 31
},
{
"render": " }",
"hl": [
0,
0,
0,
0,
9
],
"idx": 32
},
{
"render": "",
"hl": [],
"idx": 33
},
{
"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,
12,
12,
12,
12,
12,
12,
12,
12,
12,
12,
9,
12,
12,
12,
0,
8,
8,
7,
0,
12,
12,
12,
0,
8,
8,
9,
7,
0,
12,
12,
12
],
"idx": 34
},
{
"render": " {",
"hl": [
0,
0,
0,
0,
9
],
"idx": 35
},
{
"render": " $this?->x?->bar();",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
8,
8,
8,
7,
7,
7,
12,
7,
7,
7,
12,
12,
12,
9,
9,
7
],
"idx": 36
},
{
"render": "",
"hl": [],
"idx": 37
},
{
"render": " $this->doNothing();",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
8,
8,
8,
8,
8,
7,
7,
12,
12,
12,
12,
12,
12,
12,
12,
12,
9,
9,
7
],
"idx": 38
},
{
"render": "",
"hl": [],
"idx": 39
},
{
"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": 40
},
{
"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": 41
},
{
"render": "",
"hl": [],
"idx": 42
},
{
"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": 43
},
{
"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": 44
},
{
"render": "",
"hl": [],
"idx": 45
},
{
"render": " return $c;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
8,
8,
7
],
"idx": 46
},
{
"render": " }",
"hl": [
0,
0,
0,
0,
9
],
"idx": 47
},
{
"render": "}",
"hl": [
9
],
"idx": 48
},
{
"render": "",
"hl": [],
"idx": 49
},
{
"render": "trait Baz {",
"hl": [
3,
3,
3,
3,
3,
0,
12,
12,
12,
0,
9
],
"idx": 50
},
{
"render": " public function about(): array",
"hl": [
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
3,
3,
3,
3,
3,
3,
3,
3,
0,
12,
12,
12,
12,
12,
9,
9,
7,
0,
9,
9,
9,
9,
9
],
"idx": 51
},
{
"render": " {",
"hl": [
0,
0,
0,
0,
9
],
"idx": 52
},
{
"render": " return [",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
9
],
"idx": 53
},
{
"render": " '__CLASS__' => __CLASS__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 54
},
{
"render": " '__DIR__' => __DIR__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 55
},
{
"render": " '__FILE__' => __FILE__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 56
},
{
"render": " '__FUNCTION__' => __FUNCTION__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 57
},
{
"render": " '__LINE__' => __LINE__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 58
},
{
"render": " '__METHOD__' => __METHOD__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 59
},
{
"render": " '__NAMESPACE__' => __NAMESPACE__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 60
},
{
"render": " '__TRAIT__' => __TRAIT__,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0,
7,
7,
0,
6,
6,
6,
6,
6,
6,
6,
6,
6,
7
],
"idx": 61
},
{
"render": " ];",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
9,
7
],
"idx": 62
},
{
"render": " }",
"hl": [
0,
0,
0,
0,
9
],
"idx": 63
},
{
"render": "}",
"hl": [
9
],
"idx": 64
},
{
"render": "",
"hl": [],
"idx": 65
},
{
"render": "$square = fn (int $x) => $x ** 2;",
"hl": [
8,
8,
8,
8,
8,
8,
8,
0,
7,
0,
3,
3,
0,
9,
12,
12,
12,
0,
8,
8,
9,
0,
7,
7,
0,
8,
8,
0,
7,
7,
0,
6,
7
],
"idx": 66
},
{
"render": "",
"hl": [],
"idx": 67
},
{
"render": "foreach ([-1, 0, 1, 2] as $x)",
"hl": [
3,
3,
3,
3,
3,
3,
3,
0,
9,
9,
7,
6,
7,
0,
6,
7,
0,
6,
7,
0,
6,
9,
0,
7,
7,
0,
8,
8,
9
],
"idx": 68
},
{
"render": "{",
"hl": [
9
],
"idx": 69
},
{
"render": " $not = match ($x) {",
"hl": [
0,
0,
0,
0,
8,
8,
8,
8,
0,
7,
0,
3,
3,
3,
3,
3,
0,
9,
8,
8,
9,
0,
9
],
"idx": 70
},
{
"render": " 0 => 1,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
6,
0,
7,
7,
0,
6,
7
],
"idx": 71
},
{
"render": " 1,-1 => 0,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
6,
7,
7,
6,
0,
7,
7,
0,
6,
7
],
"idx": 72
},
{
"render": " default => 0,",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
3,
0,
7,
7,
0,
6,
7
],
"idx": 73
},
{
"render": " };",
"hl": [
0,
0,
0,
0,
9,
7
],
"idx": 74
},
{
"render": "}",
"hl": [
9
],
"idx": 75
},
{
"render": "",
"hl": [],
"idx": 76
},
{
"render": "\/*",
"hl": [
2,
2
],
"idx": 77
},
{
"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": 78
},
{
"render": " *\/",
"hl": [
2,
2,
2
],
"idx": 79
},
{
"render": "$foobar = new FooBar();",
"hl": [
8,
8,
8,
8,
8,
8,
8,
0,
7,
0,
3,
3,
3,
0,
12,
12,
12,
12,
12,
12,
9,
9,
7
],
"idx": 80
},
{
"render": "",
"hl": [],
"idx": 81
},
{
"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": 82
},
{
"render": "",
"hl": [],
"idx": 83
},
{
"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": 84
},
{
"render": "$x = 3;",
"hl": [
8,
8,
0,
7,
0,
6,
7
],
"idx": 85
},
{
"render": "",
"hl": [],
"idx": 86
},
{
"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": 87
},
{
"render": "$y = [",
"hl": [
8,
8,
0,
7,
0,
9
],
"idx": 88
},
{
"render": " 1,",
"hl": [
0,
0,
0,
0,
6,
7
],
"idx": 89
},
{
"render": " 2,",
"hl": [
0,
0,
0,
0,
6,
7
],
"idx": 90
},
{
"render": " 3",
"hl": [
0,
0,
0,
0,
6
],
"idx": 91
},
{
"render": "];",
"hl": [
9,
7
],
"idx": 92
},
{
"render": "",
"hl": [],
"idx": 93
},
{
"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": 94
},
{
"render": "#{Attribute]",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 95
},
{
"render": "$q = ($x !== 2)",
"hl": [
8,
8,
0,
7,
0,
9,
8,
8,
0,
7,
7,
7,
0,
6,
9
],
"idx": 96
},
{
"render": " ? 'yes'",
"hl": [
0,
0,
0,
0,
7,
0,
5,
5,
5,
5,
5
],
"idx": 97
},
{
"render": " : 'no';",
"hl": [
0,
0,
0,
0,
7,
0,
5,
5,
5,
5,
7
],
"idx": 98
},
{
"render": "",
"hl": [],
"idx": 99
},
{
"render": "\/*",
"hl": [
2,
2
],
"idx": 100
},
{
"render": "Heredoc",
"hl": [
2,
2,
2,
2,
2,
2,
2
],
"idx": 101
},
{
"render": "*\/$z = $x + $y;",
"hl": [
2,
2,
8,
8,
0,
7,
0,
8,
8,
0,
7,
0,
8,
8,
7
],
"idx": 102
},
{
"render": "$sql = <<<SQL",
"hl": [
8,
8,
8,
8,
0,
7,
0,
9,
9,
9,
9,
9,
9
],
"idx": 103
},
{
"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": 104
},
{
"render": "SQL;",
"hl": [
9,
9,
9,
7
],
"idx": 105
},
{
"render": "",
"hl": [],
"idx": 106
},
{
"render": "\/* Nowdoc *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 107
},
{
"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": 108
},
{
"render": " <foo>{x}<\/foo>",
"hl": [
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5
],
"idx": 109
},
{
"render": "TEMPLATE;",
"hl": [
9,
9,
9,
9,
9,
9,
9,
9,
7
],
"idx": 110
},
{
"render": "",
"hl": [],
"idx": 111
},
{
"render": "?>",
"hl": [
9,
9
],
"idx": 112
},
{
"render": "<!DOCTYPE html>",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 113
},
{
"render": "<html lang=\"en\">",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 114
},
{
"render": "<head>",
"hl": [
0,
0,
0,
0,
0,
0
],
"idx": 115
},
{
"render": "<title>HTML<\/title>",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 116
},
{
"render": "<\/head>",
"hl": [
0,
0,
0,
0,
0,
0,
0
],
"idx": 117
},
{
"render": "<body>",
"hl": [
0,
0,
0,
0,
0,
0
],
"idx": 118
},
{
"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": 119
},
{
"render": "<\/body>",
"hl": [
0,
0,
0,
0,
0,
0,
0
],
"idx": 120
},
{
"render": "<\/html>",
"hl": [
0,
0,
0,
0,
0,
0,
0
],
"idx": 121
},
{
"render": "<?php exit(); ?>",
"hl": [
9,
9,
9,
9,
9,
9,
3,
3,
3,
3,
9,
9,
7,
0,
9,
9
],
"idx": 122
}
],
"dirty": false
},
"offset": {
"x": 0,
"y": 0
},
"renderX": 0,
"terminalSize": {
"rows": 21,
"cols": 80
},
"statusMessage": {
"text": "HELP: Ctrl-S = save | Ctrl-Q = quit | Ctrl-F = find",
"len": 51,
"time": 1234567890
}
}