Skip to content

Instantly share code, notes, and snippets.

@olivernybroe
Created November 27, 2017 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivernybroe/d77656d0a2f18c13ac6b90d474232ac0 to your computer and use it in GitHub Desktop.
Save olivernybroe/d77656d0a2f18c13ac6b90d474232ac0 to your computer and use it in GitHub Desktop.
PHP file(0,96)
PsiElement(Non Lazy Group statement)(0,96)
PsiElement(php opening tag)('<?php')(0,5)
PsiWhiteSpace('\n\n')(5,7)
Namespace(7,96)
PsiElement(namespace)('namespace')(7,16)
PsiWhiteSpace(' ')(16,17)
PsiElement(identifier)('App')(17,20)
PsiElement(semicolon)(';')(20,21)
PsiWhiteSpace('\n\n\n')(21,24)
PsiElement(Non Lazy Group statement)(24,96)
PhpClass: Test(24,96)
PsiElement(class)('class')(24,29)
PsiWhiteSpace(' ')(29,30)
PsiElement(identifier)('Test')(30,34)
PsiWhiteSpace('\n')(34,35)
Extends list(35,35)
<empty list>
Implements list(35,35)
<empty list>
PsiElement({)('{')(35,36)
PsiWhiteSpace('\n ')(36,41)
Class fields(41,94)
Modifier list(41,50)
PsiElement(protected)('protected')(41,50)
PsiWhiteSpace(' ')(50,51)
Class field(51,93)
PsiElement(variable)('$example')(51,59)
PsiWhiteSpace(' ')(59,60)
PsiElement(assign)('=')(60,61)
PsiWhiteSpace(' ')(61,62)
Array creation expression(62,93)
PsiElement([)('[')(62,63)
PsiWhiteSpace('\n ')(63,72)
Array value(72,78)
String(72,78)
PsiElement(left single quote)(''')(72,73)
PsiElement(single quoted string)('test')(73,77)
PsiElement(right single quote)(''')(77,78)
PsiElement(comma)(',')(78,79)
PsiWhiteSpace(' ')(79,80)
Array value(80,87)
String(80,87)
PsiElement(left single quote)(''')(80,81)
PsiElement(single quoted string)('test3')(81,86)
PsiElement(right single quote)(''')(86,87)
PsiWhiteSpace('\n ')(87,92)
PsiElement(])(']')(92,93)
PsiElement(semicolon)(';')(93,94)
PsiWhiteSpace('\n')(94,95)
PsiElement(})('}')(95,96)
HtmlFile:Test.php(0,96)
PsiElement(HTML_DOCUMENT)(0,0)
PsiElement(XML_PROLOG)(0,0)
<empty list>
PsiElement(PHP outer type in html)('<?php\n\nnamespace App;\n\n\nclass Test\n{\n protected $example = [\n 'test', 'test3'\n ];\n}')(0,96)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment