Commit Graph
9 Commits
Author SHA1 Message Date
Andy 30957ad3d8 Remove // tslint:disable comments (#22198) 2017-12-14 13:24:24 -08:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Ingvar Stepanyan e176bdbdff Minor fixes/adjustments to ESTree (#20400)
* Minor fixes/adjustments to ESTree

 - Add `type: string` to base interface to allow only strings for `type` in any descendants.
 - Change `UnaryExpression::prefix` to `true` (since it can never be false and is just a backwards compatibility artefact).
 - Add absent / `null` as a valid `RegexpLiteral::value` (it's used by compliant parsers/tools when RegExp can't be natively represented).
 - Make `Literal::raw` optional to allow creating nodes without one.
 - Add missing `type` and location properties to `Comment` node.

* Update index.d.ts
2017-10-12 20:38:38 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Daniel Espeset 2fa3d94c92 Expands support for Esprima comments (#18182)
Adds an optional `comments` field to the `Program`, which will be present 
if the AST is created with Esprima using the `{ comments: true }` option.

Adds an optional `innerComments` field to `BlockStatement` which will be
present if the AST is created with Esprima using the `{ attachComments: true }`
option, given the following code:

```.js
function foo(n) {
    // comments in an empty block are `innerComments`
}
```

Note that though these fields are not specified in the ESTree specification
they extend the support already present in this set of types for 
`trailingComments` and `leadingComments`, which are also unspecified.
2017-07-24 10:03:04 -07:00
Toru Nagashima 239ac8e81e Fix estree ForXStatement#left to Pattern (#18100) 2017-07-20 09:55:31 -07:00
Ivo Gabe de Wolff 9ae701b9ed Update estree tests with nullable values 2017-04-11 10:38:04 +02:00
Ivo Gabe de Wolff 32e0e63caf Mark fields nullable 2017-04-11 10:35:41 +02:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00