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

Commit 097c630

Browse files
committed
sem: drop Flow variable type annotations
Flow: right now only function return type annotations are supported. Signed-off-by: Alexander Bezzubov <[email protected]>
1 parent aece00e commit 097c630

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

driver/normalizer/normalizer.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ var Preprocessors = []Mapping{
7979
// Normalizers is the main block of normalization rules to convert native AST to semantic UAST.
8080
var Normalizers = []Mapping{
8181
MapSemantic("Identifier", uast.Identifier{}, MapObj(
82-
Obj{
83-
"name": Var("name"),
82+
Fields{
83+
{Name: "name", Op: Var("name")},
84+
//FIXME(bzz): map Flow variable types properly
85+
{Name: "typeAnnotation", Drop: true, Op: Any()},
8486
},
8587
Obj{
8688
"Name": Var("name"),

0 commit comments

Comments
 (0)