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

Type-check node.js #486

Merged
merged 1 commit into from Apr 25, 2017
Merged

Type-check node.js #486

merged 1 commit into from Apr 25, 2017

Conversation

ghost
Copy link

@ghost ghost commented Apr 25, 2017

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

Enables type-checking in node.js and adds annotations.

class Node {
constructor(parser?: Parser, pos?: number, loc?: Position) {
class Node implements NodeBase {
constructor(parser: Parser, pos: number, loc: Position) {
Copy link
Author

Choose a reason for hiding this comment

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

This constructor was only called with missing parameters in __clone, so better to declare them as required.

@codecov
Copy link

codecov bot commented Apr 25, 2017

Codecov Report

Merging #486 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #486      +/-   ##
=========================================
- Coverage    98.2%   98.2%   -0.01%     
=========================================
  Files          21      21              
  Lines        3519    3518       -1     
  Branches      974     974              
=========================================
- Hits         3456    3455       -1     
  Misses         24      24              
  Partials       39      39
Flag Coverage Δ
#babel 80.89% <100%> (-0.01%) ⬇️
#babylon 97.04% <100%> (-0.01%) ⬇️
Impacted Files Coverage Δ
src/parser/node.js 96.66% <100%> (-0.11%) ⬇️

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 68967bf...484d3d9. Read the comment docs.

@hzoo hzoo merged commit 3199cee into babel:master Apr 25, 2017
@hzoo
Copy link
Member

hzoo commented Apr 25, 2017

Awesome!

@ghost ghost deleted the node branch April 25, 2017 21:55
@ghost ghost mentioned this pull request May 19, 2017
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.

2 participants