fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.04k stars 711 forks source link

error when typescript with TSAsExpression #691

Open mqliutie opened 1 year ago

mqliutie commented 1 year ago

Describe the bug Missing semicolon. (2:10)

To Reproduce Steps to reproduce the behavior:

  1. Go to astexplorer
  2. select language javascript and parser @babel/parser
  3. paste code
function t(a:any):boolean{
  return a as boolean
}

Expected behavior work correctly

Screenshots

image

Browser (please complete the following information):

astexplorer settings:

Scipion commented 5 months ago

It does work with @babel/parser if you select typescript plugin and unselect flow. error when typescript with TSAsExpression #691

Please close issue