You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select language javascript and parser @babel/parser
paste code
function t(a:any):boolean{
return a as boolean
}
Expected behavior
work correctly
Screenshots
Browser (please complete the following information):
OS: macOs
Browser : Chrome
Version : 112.0.5615.137(正式版本) (x86_64)
astexplorer settings:
Selected parser: @babel/parser
Selected transformer (if applicable): none
Contents of the local storage key explorerSettingsV1 (code can be removed if you don't want it to be public)
{
"showTransformPanel": false,
"parserSettings": {},
"parserPerCategory": {},
"workbench": {
"parser": "acorn",
"code": "/**\n * Paste or drop some JavaScript here and explore\n * the syntax tree created by chosen parser.\n * You can use all the cool new features from ES6\n * and even more. Enjoy!\n */\n\nlet tips = [\n \"Click on any AST node with a '+' to expand it\",\n\n \"Hovering over a node highlights the \\\n corresponding location in the source code\",\n\n \"Shift click on an AST node to expand the whole subtree\"\n];\n\nfunction printTips() {\n tips.forEach((tip, i) => console.log(`Tip ${i}:` + tip));\n}\n",
"keyMap": "default",
"transform": {
"code": "",
"transformer": null
}
}
}
The text was updated successfully, but these errors were encountered:
Describe the bug
Missing semicolon. (2:10)
To Reproduce
Steps to reproduce the behavior:
javascript
and parser@babel/parser
Expected behavior
work correctly
Screenshots
Browser (please complete the following information):
astexplorer settings:
explorerSettingsV1
(code can be removed if you don't want it to be public)The text was updated successfully, but these errors were encountered: