Merge branch 'master' into implement-smart-pipeline-in-parser

* master: (222 commits)
  Set correct methods name
  Use toPropertyKey in the "decorate" helper
  Allow function types in type params within arrow return types (#8954)
  Fix message when plugin of a wrong type is passed (#8950)
  rename colliding let bindings with for loop init (#8937)
  edge incomplete support for arrow destructuring (babel #8349) (#8926)
  fix single-arg async arrows when retainLines=true (#8868)
  [flow] Explicit inexact objects with `...` (#8884)
  Update preset-env data (#8898)
  Treat break inside block inside loop (#8914)
  fixed "source map" formatting in comment (#8878) [skip ci]
  fix typo in contributing guidelines (#8901) [skip ci]
  fix: Expression x === 'y' && '' should not evaluate to undefined. (#8880)
  fixed an extra word
  Fixes #8865 (#8866)
  v7.1.4
  v7.1.3
  Bump Babel deps (#8770)
  flow-bin@0.82.0 (#8832)
  Insertafter jsx fix (#8833)
  ...

# Conflicts:
#	packages/babel-parser/src/tokenizer/index.js
#	packages/babel-parser/test/fixtures/experimental/class-private-properties/failure-numeric-literal/options.json
#	packages/babel-parser/test/fixtures/experimental/pipeline-operator/invalid-proposal/options.json
This commit is contained in:
mAAdhaTTah
2018-11-03 14:00:12 -04:00
1882 changed files with 21779 additions and 6653 deletions

View File

@@ -0,0 +1,6 @@
test(function() {
var a = 1;
// one
}
// two
);

View File

@@ -0,0 +1,261 @@
{
"type": "File",
"start": 0,
"end": 51,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 2
}
},
"program": {
"type": "Program",
"start": 0,
"end": 51,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 2
}
},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 51,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 2
}
},
"expression": {
"type": "CallExpression",
"start": 0,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 1
}
},
"callee": {
"type": "Identifier",
"start": 0,
"end": 4,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 4
},
"identifierName": "test"
},
"name": "test"
},
"arguments": [
{
"type": "FunctionExpression",
"start": 5,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 4,
"column": 1
}
},
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 16,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 4,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 20,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 12
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 24,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 11
}
},
"id": {
"type": "Identifier",
"start": 24,
"end": 25,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 7
},
"identifierName": "a"
},
"name": "a"
},
"init": {
"type": "NumericLiteral",
"start": 28,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 11
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
],
"kind": "var",
"trailingComments": [
{
"type": "CommentLine",
"value": " one",
"start": 33,
"end": 39,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 8
}
}
}
]
}
],
"directives": []
},
"trailingComments": [
{
"type": "CommentLine",
"value": " two",
"start": 42,
"end": 48,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 6
}
}
}
]
}
]
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " one",
"start": 33,
"end": 39,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 8
}
}
},
{
"type": "CommentLine",
"value": " two",
"start": 42,
"end": 48,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 6
}
}
}
]
}

View File

@@ -1,3 +1,3 @@
{
"sourceFilename": "path/to/input-file.js"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "getter should have no params (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "setter should have exactly one param (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "setter should have exactly one param (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"allowReturnOutsideFunction": true
}
}

View File

@@ -1,3 +1,3 @@
{
"allowReturnOutsideFunction": true
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Expected number in radix 16 (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:3)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated string constant (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Expecting Unicode escape sequence \\uXXXX (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid Unicode escape (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid Unicode escape (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in postfix operation (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in postfix operation (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in prefix operation (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in prefix operation (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in for-in statement (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:10)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated string constant (1:8)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:4)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (4:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (4:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected \";\" (1:6)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected \";\" (1:6)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:10)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:14)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:11)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected \";\" (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected \";\" (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token, expected \";\" (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unsyntactic break (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:6)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unsyntactic continue (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in for-in statement (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in for-in statement (1:5)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:9)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:24)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:12)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:7)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:7)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Missing catch or finally clause (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected character '‿' (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Multiple default clauses (1:22)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated comment (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated comment (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated comment (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated comment (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated comment (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated comment (1:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (3:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (3:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (3:0)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (3:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Unexpected token (3:2)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Expecting Unicode escape sequence \\uXXXX (1:1)"
}
}

View File

@@ -1,3 +1,3 @@
{
"throws": "Invalid Unicode escape (1:0)"
}
}

Some files were not shown because too many files have changed in this diff Show More