The code below is a valid typescript file.
GetterProperty has a field named
typeAnnotation and swc can parse it correctly.
Import type havs type arguments rather than type params.
Thanks to @dsherret, may span-related bugs of parser is fixed.
Span of patterns are fixed.
Span of classes and interfaces are fixed.
Previously comments before
} was removed silently.
is a valid typescript code.
swc emitted an error like
The error is removed.
was miscompiled as
From now, braces are correctly preserved and