Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Add support for declare export + fixes #224

Merged
merged 18 commits into from
Apr 21, 2017
Merged

Add support for declare export + fixes #224

merged 18 commits into from
Apr 21, 2017

Conversation

danez
Copy link
Member

@danez danez commented Nov 13, 2016

Q A
Bug fix? no
Breaking change? no
New feature? yes
Deprecations? no
Spec compliancy? yes
Tests added/pass? yes
Fixed tickets #74
License MIT

This add support for declare export. I tried to follow the flow parser as close as possible.
I also found some related problems and fixed them.

  • ObjectTypeProperties were missing the field kind
  • getters and setters were not allowed in TypeClasses/interfaces

@codecov-io
Copy link

codecov-io commented Nov 13, 2016

Codecov Report

Merging #224 into master will increase coverage by 0.03%.
The diff coverage is 99.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #224      +/-   ##
==========================================
+ Coverage    98.2%   98.24%   +0.03%     
==========================================
  Files          20       20              
  Lines        3462     3530      +68     
  Branches      935      972      +37     
==========================================
+ Hits         3400     3468      +68     
  Misses         23       23              
  Partials       39       39
Flag Coverage Δ
#babel 81.21% <35.23%> (-1.4%) ⬇️
#babylon 97.08% <99.04%> (+0.11%) ⬆️
Impacted Files Coverage Δ
src/parser/statement.js 99.07% <100%> (ø) ⬆️
src/plugins/flow.js 98.15% <99.03%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad284d5...2808546. Read the comment docs.

@danez danez changed the base branch from master to 7.0 March 7, 2017 11:58
@danez danez changed the title WIP Add support for declare export Add support for declare export Mar 7, 2017
@danez danez removed the PR: WIP label Mar 7, 2017
@danez danez changed the base branch from 7.0 to master March 21, 2017 21:10
@danez danez requested a review from samwgoldman April 5, 2017 20:51
@danez danez changed the title Add support for declare export Add support for declare export + fixes Apr 5, 2017
["const"]: "declare export var",
["let"]: "declare export var",
["type"]: "export type",
["interface"]: "export interface",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the computed property?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, well...I change it :D

Copy link
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Ran through and compared against Flow parser, nice work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants