type annotate babylon

This commit is contained in:
Sebastian McKenzie
2015-09-23 15:59:41 +01:00
parent 0612f69141
commit 6d6ddf0bcd
19 changed files with 154 additions and 45 deletions

View File

@@ -1,3 +1,5 @@
/* @flow */
// This is a trick taken from Esprima. It turns out that, on
// non-Chrome browsers, to check whether a string is in a set, a
// predicate containing a big ugly `switch` statement is faster than

View File

@@ -1,3 +1,5 @@
/* @flow */
import { lineBreakG } from "./whitespace";
// These are used when `options.locations` is on, for the

View File

@@ -1,3 +1,5 @@
/* @flow */
// Matches a whole line break (where CRLF is considered a single
// line break). Used to count lines.