Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
sem: don't map Flow Identifier>optional flag
Browse files Browse the repository at this point in the history
Skip mapping 'optional' field on Indetifier for Flow "Optional Prameters"
https://flow.org/en/docs/types/functions/#toc-optional-parameters
`function acceptsNumberMaybe (value?: number) {}`

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
  • Loading branch information
bzz committed Mar 1, 2019
1 parent 097c630 commit d51414d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/normalizer/normalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ var Normalizers = []Mapping{
{Name: "name", Op: Var("name")},
//FIXME(bzz): map Flow variable types properly
{Name: "typeAnnotation", Drop: true, Op: Any()},
//FIXME(bzz): map Flow "Optional Prameter" properly
{Name: "optional", Drop: true, Op: Any()},
},
Obj{
"Name": Var("name"),
Expand Down

0 comments on commit d51414d

Please sign in to comment.