Allow ts modifier names to be used as function argument names (#8030)

This commit is contained in:
Brian Ng
2018-06-12 08:38:38 -05:00
committed by GitHub
parent 313960e601
commit b6455c611b
3 changed files with 332 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
return (
!this.hasPrecedingLineBreak() &&
!this.match(tt.parenL) &&
!this.match(tt.parenR) &&
!this.match(tt.colon) &&
!this.match(tt.eq) &&
!this.match(tt.question)