File tree Expand file tree Collapse file tree 5 files changed +24
-24
lines changed Expand file tree Collapse file tree 5 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 59
59
"temp" : " ~0.8.3" ,
60
60
"test262" :
" git+https://[email protected] /tc39/test262.git#c4e3d12" ,
61
61
"test262-stream" : " ~1.0.0" ,
62
- "tslint" : " ~5.1 .0" ,
63
- "typescript" : " ~2.3 .2" ,
64
- "typescript-formatter" : " ~5.1.3 " ,
62
+ "tslint" : " ~5.8 .0" ,
63
+ "typescript" : " ~2.6 .2" ,
64
+ "typescript-formatter" : " ~7.0.1 " ,
65
65
"unicode-8.0.0" : " ~0.7.0" ,
66
66
"webpack" : " ~1.14.0"
67
67
},
Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ export class CommentHandler {
66
66
return trailingComments ;
67
67
}
68
68
69
- const entry = this . stack [ this . stack . length - 1 ] ;
70
- if ( entry && entry . node . trailingComments ) {
71
- const firstComment = entry . node . trailingComments [ 0 ] ;
69
+ const last = this . stack [ this . stack . length - 1 ] ;
70
+ if ( last && last . node . trailingComments ) {
71
+ const firstComment = last . node . trailingComments [ 0 ] ;
72
72
if ( firstComment && firstComment . range [ 0 ] >= metadata . end . offset ) {
73
- trailingComments = entry . node . trailingComments ;
74
- delete entry . node . trailingComments ;
73
+ trailingComments = last . node . trailingComments ;
74
+ delete last . node . trailingComments ;
75
75
}
76
76
}
77
77
return trailingComments ;
Original file line number Diff line number Diff line change @@ -484,9 +484,9 @@ export class JSXParser extends Parser {
484
484
this . expectJSX ( '<' ) ;
485
485
if ( this . matchJSX ( '/' ) ) {
486
486
this . expectJSX ( '/' ) ;
487
- const name = this . parseJSXElementName ( ) ;
487
+ const elementName = this . parseJSXElementName ( ) ;
488
488
this . expectJSX ( '>' ) ;
489
- return this . finalize ( node , new JSXNode . JSXClosingElement ( name ) ) ;
489
+ return this . finalize ( node , new JSXNode . JSXClosingElement ( elementName ) ) ;
490
490
}
491
491
492
492
const name = this . parseJSXElementName ( ) ;
Original file line number Diff line number Diff line change @@ -877,11 +877,11 @@ export class Scanner {
877
877
++ this . index ;
878
878
str += this . scanUnicodeCodePointEscape ( ) ;
879
879
} else {
880
- const unescaped = this . scanHexEscape ( ch ) ;
881
- if ( unescaped === null ) {
880
+ const unescapedChar = this . scanHexEscape ( ch ) ;
881
+ if ( unescapedChar === null ) {
882
882
this . throwUnexpectedToken ( ) ;
883
883
}
884
- str += unescaped ;
884
+ str += unescapedChar ;
885
885
}
886
886
break ;
887
887
case 'x' :
@@ -1003,9 +1003,9 @@ export class Scanner {
1003
1003
cooked += this . scanUnicodeCodePointEscape ( ) ;
1004
1004
} else {
1005
1005
const restore = this . index ;
1006
- const unescaped = this . scanHexEscape ( ch ) ;
1007
- if ( unescaped !== null ) {
1008
- cooked += unescaped ;
1006
+ const unescapedChar = this . scanHexEscape ( ch ) ;
1007
+ if ( unescapedChar !== null ) {
1008
+ cooked += unescapedChar ;
1009
1009
} else {
1010
1010
this . index = restore ;
1011
1011
cooked += ch ;
Original file line number Diff line number Diff line change @@ -82,26 +82,26 @@ function report(summary) {
82
82
{
83
83
tests : summary . disallowed . success ,
84
84
label :
85
- 'valid programs parsed without error' +
86
- ' (in violation of the whitelist file)'
85
+ 'valid programs parsed without error' +
86
+ ' (in violation of the whitelist file)'
87
87
} ,
88
88
{
89
89
tests : summary . disallowed . failure ,
90
90
label :
91
- 'invalid programs produced a parsing error' +
92
- ' (in violation of the whitelist file)'
91
+ 'invalid programs produced a parsing error' +
92
+ ' (in violation of the whitelist file)'
93
93
} ,
94
94
{
95
95
tests : summary . disallowed . falsePositive ,
96
96
label :
97
- 'invalid programs did not produce a parsing error' +
98
- ' (without a corresponding entry in the whitelist file)'
97
+ 'invalid programs did not produce a parsing error' +
98
+ ' (without a corresponding entry in the whitelist file)'
99
99
} ,
100
100
{
101
101
tests : summary . disallowed . falseNegative ,
102
102
label :
103
- 'valid programs produced a parsing error' +
104
- ' (without a corresponding entry in the whitelist file)'
103
+ 'valid programs produced a parsing error' +
104
+ ' (without a corresponding entry in the whitelist file)'
105
105
} ,
106
106
{
107
107
tests : summary . unrecognized ,
You can’t perform that action at this time.
0 commit comments