Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
936e649
commit ddb1570
Showing
27 changed files
with
291 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ression/comment-before-parentheses-return-arg-createParenthesizedExpressions/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"retainLines": true, | ||
"createParenthesizedExpressions": true | ||
"parserOpts": { "createParenthesizedExpressions": true } | ||
} |
13 changes: 7 additions & 6 deletions
13
...regression/comment-before-parentheses-return-arg-createParenthesizedExpressions/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
function assertElement(assertFn, shouldBeElement, opt_message) { | ||
return (/** @type {!Ele ment} */ | ||
return (/** @type {!Ele ment} */( | ||
assertType_( | ||
assertFn, | ||
shouldBeElement, | ||
isElement(shouldBeElement), | ||
'Element expected', | ||
opt_message)); | ||
|
||
|
||
opt_message | ||
) | ||
)); | ||
} | ||
|
||
const slot = /** @type {!HTMLSlotElement} */e.target; | ||
const slot = /** @type {!HTMLSlotElement} */(e.target); | ||
|
||
assertElement( | ||
/** @type {Element} */el); | ||
/** @type {Element} */(el) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
.../sourcemaps/comment-before-parentheses-return-arg-createParenthesizedExpressions/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function assertElement(assertFn, shouldBeElement, opt_message) { | ||
return /** @type {!Ele ment} */ ( | ||
assertType_( | ||
assertFn, | ||
shouldBeElement, | ||
isElement(shouldBeElement), | ||
'Element expected', | ||
opt_message | ||
) | ||
); | ||
} | ||
|
||
const slot = /** @type {!HTMLSlotElement} */ (e.target); | ||
|
||
assertElement( | ||
/** @type {Element} */ (el), | ||
); |
5 changes: 5 additions & 0 deletions
5
...rcemaps/comment-before-parentheses-return-arg-createParenthesizedExpressions/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"retainLines": true, | ||
"parserOpts": { "createParenthesizedExpressions": true }, | ||
"sourceMaps": true | ||
} |
17 changes: 17 additions & 0 deletions
17
...sourcemaps/comment-before-parentheses-return-arg-createParenthesizedExpressions/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function assertElement(assertFn, shouldBeElement, opt_message) { | ||
return (/** @type {!Ele ment} */( | ||
assertType_( | ||
assertFn, | ||
shouldBeElement, | ||
isElement(shouldBeElement), | ||
'Element expected', | ||
opt_message | ||
) | ||
)); | ||
} | ||
|
||
const slot = /** @type {!HTMLSlotElement} */(e.target); | ||
|
||
assertElement( | ||
/** @type {Element} */(el) | ||
); |
22 changes: 22 additions & 0 deletions
22
...maps/comment-before-parentheses-return-arg-createParenthesizedExpressions/source-map.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"version": 3, | ||
"names": [ | ||
"assertElement", | ||
"assertFn", | ||
"shouldBeElement", | ||
"opt_message", | ||
"assertType_", | ||
"isElement", | ||
"slot", | ||
"e", | ||
"target", | ||
"el" | ||
], | ||
"sources": [ | ||
"fixtures/sourcemaps/comment-before-parentheses-return-arg-createParenthesizedExpressions/input.js" | ||
], | ||
"sourcesContent": [ | ||
"function assertElement(assertFn, shouldBeElement, opt_message) {\n return /** @type {!Ele\tment} */ (\n\t assertType_(\n\t assertFn,\n\t\t shouldBeElement,\n\t\t isElement(shouldBeElement),\n\t\t 'Element expected',\n\t\t opt_message\n\t )\n\t);\n}\n\nconst slot = /** @type {!HTMLSlotElement} */ (e.target);\n\nassertElement(\n /** @type {Element} */ (el),\n);" | ||
], | ||
"mappings": "AAAA,SAASA,aAAaA,CAACC,QAAQ,EAAEC,eAAe,EAAEC,WAAW,EAAE;EAC7D,OAAO,yBAAyB;IAC/BC,WAAW;IACTH,QAAQ;IACTC,eAAe;IACfG,SAAS,CAACH,eAAe,CAAC;IAC1B,kBAAkB;IAClBC;IACD;IACF,CAAC;AACF;;AAEA,MAAMG,IAAI,GAAG,+BAAgC,CAACC,CAAC,CAACC,MAAM,CAAC;;AAEvDR,aAAa;AACX,sBAAuB,CAACS,EAAE;AAC5B,CAAC" | ||
} |
17 changes: 17 additions & 0 deletions
17
...s/babel-generator/test/fixtures/sourcemaps/comment-before-parentheses-return-arg/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function assertElement(assertFn, shouldBeElement, opt_message) { | ||
return /** @type {!Ele ment} */ ( | ||
assertType_( | ||
assertFn, | ||
shouldBeElement, | ||
isElement(shouldBeElement), | ||
'Element expected', | ||
opt_message | ||
) | ||
); | ||
} | ||
|
||
const slot = /** @type {!HTMLSlotElement} */ (e.target); | ||
|
||
assertElement( | ||
/** @type {Element} */ (el), | ||
); |
4 changes: 4 additions & 0 deletions
4
...bel-generator/test/fixtures/sourcemaps/comment-before-parentheses-return-arg/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"retainLines": true, | ||
"sourceMaps": true | ||
} |
Oops, something went wrong.