Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix #365#437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lucivpav wants to merge27 commits intoestools:master
base:master
Choose a base branch
Loading
fromlucivpav:fix-365
Open
Changes from1 commit
Commits
Show all changes
27 commits
Select commitHold shift + click to select a range
0d54237
add tests
lucivpavOct 7, 2020
d5a507d
improve the "throw" fix
lucivpavOct 7, 2020
2cc7937
add failing arrow function test
lucivpavOct 13, 2020
3394a26
replace the tests with a single thorough test
lucivpavOct 13, 2020
a80ae88
add another test - ()expression inside of a return expression
lucivpavOct 13, 2020
a5790be
more thought out fix; WIP
lucivpavOct 15, 2020
2a1ed4e
proper fix
lucivpavOct 19, 2020
4fa78f0
cleanup
lucivpavOct 19, 2020
6bb44bb
cleanup
lucivpavOct 19, 2020
b44cff1
cleanup
lucivpavOct 19, 2020
6e566cf
prettify
lucivpavOct 19, 2020
0ff6beb
fix problem with with default function parameters
Nov 26, 2020
ce9e1ce
fix problem with unwanted parentheses in imports
Nov 26, 2020
acc9cd0
revert no-op change
Dec 14, 2020
da7d71c
dont parenthesize variable declaration expressions
Dec 17, 2020
873307f
revert unwanted new files
Dec 17, 2020
bb30704
revert logic to simplify PR; only parenthesize at a level where it is…
Dec 17, 2020
3e73ef3
Merge branch 'master' into github/fix-365
Dec 21, 2020
34cd8c6
nits
Jan 6, 2021
fae4df2
nit
Jan 6, 2021
91c5ee0
improve performance
Jan 6, 2021
2cfc090
fix isParenthesized zero length input behavior
Jan 6, 2021
9bc0f12
use a single isParenthesized() fn instead of additional isParenthesiz…
Jan 6, 2021
ca68677
use constant for newline instead of a literal
Jan 6, 2021
d669661
handle edge case in addMultiLineIndent()
Jan 6, 2021
fb1ab86
add test, where parenthesis should not be added
Jan 13, 2021
3f8ae47
remove unused function parameter
Jan 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix isParenthesized zero length input behavior
  • Loading branch information
Pavel Lučivňák committedJan 14, 2021
commit2cfc0902d3a3fbb1e4caa0e0b9086f4d2bd2d25e
3 changes: 3 additions & 0 deletionsescodegen.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -254,6 +254,9 @@
}

function isParenthesizedCached(str, leftPar, rightPar) {
if (str.length === 0) {
return false;
}
var counter = 0;
for (var i = 0; i < str.length; ++i) {
if (str[i] === leftPar) {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp