Merge pull request #378 from TysonAndre/update-syntax-visualizer

Update example ast output to latest version's output
This commit is contained in:
Rob Lourens 2022-09-24 18:35:28 -07:00 коммит произвёл GitHub
Родитель a60544ed0a ca842b44ba
Коммит 735ce08380
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 151 добавлений и 154 удалений

Просмотреть файл

@ -1,180 +1,177 @@
{ {
"SourceFileNode": { "SourceFileNode": {
"scriptSectionList": [ "statementList": [
{ {
"ScriptSection": { "InlineHtml": {
"text": { "scriptSectionEndTag": null,
"kind": "ScriptSectionPrependedText", "text": null,
"fullStart": 0, "scriptSectionStartTag": {
"start": 0,
"length": 0
},
"startTag": {
"kind": "ScriptSectionStartTag", "kind": "ScriptSectionStartTag",
"fullStart": 0, "fullStart": 0,
"start": 0, "start": 0,
"length": 6 "length": 6
}
}
},
{
"ClassDeclaration": {
"attributes": null,
"abstractOrFinalModifier": null,
"modifiers": [],
"classKeyword": {
"kind": "ClassKeyword",
"fullStart": 6,
"start": 21,
"length": 20
}, },
"statementList": [ "name": {
{ "error": "MissingToken",
"ClassNode": { "kind": "Name",
"abstractOrFinalModifier": null, "fullStart": 26,
"classKeyword": { "start": 26,
"kind": "ClassKeyword", "length": 0
"fullStart": 6, },
"start": 24, "classBaseClause": null,
"length": 23 "classInterfaceClause": null,
}, "classMembers": {
"name": { "ClassMembersNode": {
"error": "MissingToken", "openBrace": {
"kind": "Name", "kind": "OpenBraceToken",
"fullStart": 29, "fullStart": 26,
"start": 29, "start": 27,
"length": 0 "length": 2
}, },
"classBaseClause": null, "classMemberDeclarations": [
"classInterfaceClause": null, {
"classMembers": { "MethodDeclaration": {
"ClassMembersNode": { "attributes": null,
"openBrace": { "modifiers": [],
"kind": "OpenBraceToken", "functionKeyword": {
"fullStart": 29, "kind": "FunctionKeyword",
"start": 30, "fullStart": 28,
"start": 33,
"length": 13
},
"byRefToken": null,
"name": {
"kind": "Name",
"fullStart": 41,
"start": 42,
"length": 2 "length": 2
}, },
"classMemberDeclarations": [ "openParen": {
{ "kind": "OpenParenToken",
"MethodNode": { "fullStart": 43,
"modifiers": [], "start": 44,
"functionKeyword": { "length": 2
"kind": "FunctionKeyword", },
"fullStart": 31, "parameters": null,
"start": 37, "closeParen": {
"length": 14 "kind": "CloseParenToken",
}, "fullStart": 45,
"byRefToken": null, "start": 45,
"name": { "length": 1
"kind": "Name", },
"fullStart": 45, "colonToken": null,
"start": 46, "questionToken": null,
"length": 2 "returnTypeList": null,
}, "compoundStatementOrSemicolon": {
"openParen": { "CompoundStatementNode": {
"kind": "OpenParenToken", "openBrace": {
"fullStart": 47, "kind": "OpenBraceToken",
"start": 48, "fullStart": 46,
"length": 2 "start": 47,
}, "length": 2
"parameters": null, },
"closeParen": { "statements": [],
"kind": "CloseParenToken", "closeBrace": {
"fullStart": 49, "error": "MissingToken",
"start": 49, "kind": "CloseBraceToken",
"length": 1 "fullStart": 48,
}, "start": 48,
"colonToken": null, "length": 0
"returnType": null,
"compoundStatementOrSemicolon": {
"CompoundStatementNode": {
"children": [
{
"kind": "OpenBraceToken",
"fullStart": 50,
"start": 51,
"length": 2
},
{
"error": "MissingToken",
"kind": "CloseBraceToken",
"fullStart": 52,
"start": 52,
"length": 0
}
]
}
}
}
},
{
"MethodNode": {
"modifiers": [
{
"kind": "PublicKeyword",
"fullStart": 52,
"start": 60,
"length": 14
}
],
"functionKeyword": {
"kind": "FunctionKeyword",
"fullStart": 66,
"start": 67,
"length": 9
},
"byRefToken": null,
"name": {
"kind": "Name",
"fullStart": 75,
"start": 76,
"length": 2
},
"openParen": {
"kind": "OpenParenToken",
"fullStart": 77,
"start": 78,
"length": 2
},
"parameters": null,
"closeParen": {
"kind": "CloseParenToken",
"fullStart": 79,
"start": 79,
"length": 1
},
"colonToken": null,
"returnType": null,
"compoundStatementOrSemicolon": {
"CompoundStatementNode": {
"children": [
{
"kind": "OpenBraceToken",
"fullStart": 80,
"start": 81,
"length": 2
},
{
"kind": "CloseBraceToken",
"fullStart": 82,
"start": 83,
"length": 2
}
]
}
}
} }
} }
}
}
},
{
"MethodDeclaration": {
"attributes": null,
"modifiers": [
{
"kind": "PublicKeyword",
"fullStart": 48,
"start": 54,
"length": 12
}
], ],
"closeBrace": { "functionKeyword": {
"error": "MissingToken", "kind": "FunctionKeyword",
"kind": "CloseBraceToken", "fullStart": 60,
"fullStart": 84, "start": 61,
"start": 84, "length": 9
"length": 0 },
"byRefToken": null,
"name": {
"kind": "Name",
"fullStart": 69,
"start": 70,
"length": 2
},
"openParen": {
"kind": "OpenParenToken",
"fullStart": 71,
"start": 72,
"length": 2
},
"parameters": null,
"closeParen": {
"kind": "CloseParenToken",
"fullStart": 73,
"start": 73,
"length": 1
},
"colonToken": null,
"questionToken": null,
"returnTypeList": null,
"compoundStatementOrSemicolon": {
"CompoundStatementNode": {
"openBrace": {
"kind": "OpenBraceToken",
"fullStart": 74,
"start": 75,
"length": 2
},
"statements": [],
"closeBrace": {
"kind": "CloseBraceToken",
"fullStart": 76,
"start": 77,
"length": 2
}
}
} }
} }
} }
],
"closeBrace": {
"error": "MissingToken",
"kind": "CloseBraceToken",
"fullStart": 78,
"start": 78,
"length": 0
} }
} }
], }
"endTag": null
} }
} }
], ],
"endOfFileToken": { "endOfFileToken": {
"kind": "EndOfFileToken", "kind": "EndOfFileToken",
"fullStart": 84, "fullStart": 78,
"start": 86, "start": 79,
"length": 2 "length": 1
} }
} }
} }