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

Fix declare class with qualified type identifier #97

Merged
merged 1 commit into from
Aug 23, 2016
Merged

Fix declare class with qualified type identifier #97

merged 1 commit into from
Aug 23, 2016

Conversation

danez
Copy link
Member

@danez danez commented Aug 19, 2016

This makes declare class extends behave the same way as in flow.
The ast-token after the extends keyword, might be either Identifier or QualifiedTypeIdentifier.

declare class a extends b.c.d {}

To do that this change splits the parseGenericType into two functions, one for parsing genericType and on for qualifiedTypeIdentifier

Fixes #87

This makes declare class extends behave the same way as in flow
The ast-token after the extends keyword, might be either Identifier or
QualifiedTypeIdentifier

To do that this commits splits the parseGenericType into two functions,
one for parsing genericType and on for qualifiedTypeIdentifier
@codecov-io
Copy link

Current coverage is 96.92% (diff: 100%)

Merging #97 into master will increase coverage by <.01%

@@             master        #97   diff @@
==========================================
  Files            19         19          
  Lines          2922       2927     +5   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           2832       2837     +5   
  Misses           90         90          
  Partials          0          0          

Powered by Codecov. Last update b649671...09a3aa0

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.

3 participants