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

Type-check State #492

Merged
merged 1 commit into from May 10, 2017
Merged

Type-check State #492

merged 1 commit into from May 10, 2017

Conversation

ghost
Copy link

@ghost ghost commented Apr 26, 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 the file and adds annotations.
Enabling type-checking here also caused errors in some other files, so fixed those too.

@codecov
Copy link

codecov bot commented Apr 26, 2017

Codecov Report

Merging #492 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #492   +/-   ##
======================================
  Coverage    98.2%   98.2%           
======================================
  Files          21      21           
  Lines        3517    3517           
  Branches      974     974           
======================================
  Hits         3454    3454           
  Misses         24      24           
  Partials       39      39
Flag Coverage Δ
#babel 80.89% <100%> (ø) ⬆️
#babylon 97.04% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/tokenizer/index.js 98.36% <ø> (ø) ⬆️
src/tokenizer/state.js 100% <100%> (ø) ⬆️
src/parser/comments.js 96% <100%> (ø) ⬆️

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 7627c5a...f6996e0. Read the comment docs.

@@ -626,6 +626,7 @@ export default class Tokenizer extends LocationParser {
code = this.readHexChar(this.input.indexOf("}", this.state.pos) - this.state.pos, throwOnInvalid);
++this.state.pos;
if (code === null) {
// $FlowFixMe (is this always non-null?)
Copy link
Member

Choose a reason for hiding this comment

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

maybe @bakkot can help out with this?

@danez danez merged commit 1773ca7 into babel:master May 10, 2017
@ghost ghost deleted the state branch May 10, 2017 21:44
@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