From 0c11af8fc51edcb8a3ac5344fdf67f969785e8b6 Mon Sep 17 00:00:00 2001 From: Naveen jain Date: Fri, 4 Aug 2017 15:24:03 +0530 Subject: [PATCH] Fix #656 (#659) * Fix #656 * Fix #656 --- src/plugins/flow.js | 2 -- .../constructor-override-with-class-prop-plugin/expected.json | 3 +-- test/fixtures/flow/literal-types/null/expected.json | 3 +-- test/fixtures/flow/type-annotations/100/expected.json | 3 +-- test/fixtures/flow/type-annotations/builtin/expected.json | 3 +-- .../type-annotations/existential-type-param-2/expected.json | 3 +-- 6 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/plugins/flow.js b/src/plugins/flow.js index 0ae0587eef..7195534039 100644 --- a/src/plugins/flow.js +++ b/src/plugins/flow.js @@ -1043,12 +1043,10 @@ export default (superClass: Class): Class => ); case tt._null: - node.value = this.match(tt._null); this.next(); return this.finishNode(node, "NullLiteralTypeAnnotation"); case tt._this: - node.value = this.match(tt._this); this.next(); return this.finishNode(node, "ThisTypeAnnotation"); diff --git a/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json b/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json index 721399cff9..2d268761f8 100644 --- a/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json +++ b/test/fixtures/flow/classes/constructor-override-with-class-prop-plugin/expected.json @@ -152,8 +152,7 @@ "line": 2, "column": 25 } - }, - "value": true + } }, "typeParameters": null } diff --git a/test/fixtures/flow/literal-types/null/expected.json b/test/fixtures/flow/literal-types/null/expected.json index 9eefed3e90..954921be67 100644 --- a/test/fixtures/flow/literal-types/null/expected.json +++ b/test/fixtures/flow/literal-types/null/expected.json @@ -100,8 +100,7 @@ "line": 1, "column": 13 } - }, - "value": true + } } } }, diff --git a/test/fixtures/flow/type-annotations/100/expected.json b/test/fixtures/flow/type-annotations/100/expected.json index a0e6a89d2c..3a0d91cfaa 100644 --- a/test/fixtures/flow/type-annotations/100/expected.json +++ b/test/fixtures/flow/type-annotations/100/expected.json @@ -142,8 +142,7 @@ "line": 1, "column": 22 } - }, - "value": true + } } }, "body": { diff --git a/test/fixtures/flow/type-annotations/builtin/expected.json b/test/fixtures/flow/type-annotations/builtin/expected.json index c60b595377..77be18db9e 100644 --- a/test/fixtures/flow/type-annotations/builtin/expected.json +++ b/test/fixtures/flow/type-annotations/builtin/expected.json @@ -529,8 +529,7 @@ "line": 12, "column": 13 } - }, - "value": true + } }, "leadingComments": [ { diff --git a/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json b/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json index 35d26afbfb..a5657a79d5 100644 --- a/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json +++ b/test/fixtures/flow/type-annotations/existential-type-param-2/expected.json @@ -212,8 +212,7 @@ "line": 1, "column": 21 } - }, - "value": true + } }, { "type": "ExistsTypeAnnotation",