Skip to content

Commit

Permalink
feat: allow override as parameter property (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane authored May 11, 2021
1 parent 707f33c commit 6d3292a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/js_parser/js_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -4833,7 +4833,7 @@ func (p *parser) parseFn(name *js_ast.LocRef, data fnOrArrowDataParse) (fn js_as
// as a "parameter property" in TypeScript.
if isIdentifier && data.isConstructor {
for p.lexer.Token == js_lexer.TIdentifier || p.lexer.Token == js_lexer.TOpenBrace || p.lexer.Token == js_lexer.TOpenBracket {
if text != "public" && text != "private" && text != "protected" && text != "readonly" {
if text != "public" && text != "private" && text != "protected" && text != "readonly" && text != "override" {
break
}
isTypeScriptCtorField = true
Expand Down

0 comments on commit 6d3292a

Please sign in to comment.