1
1
// report.js
2
- // 2018-05-14
2
+ // 2018-06-19
3
3
// Copyright (c) 2015 Douglas Crockford (www.JSLint.com)
4
4
5
5
// Generate JSLint HTML reports.
6
6
7
7
/*property
8
- closure, column, context, edition, error, exports, filter, forEach, fudge ,
9
- function, functions, global, id, froms , isArray, join, json, keys, length,
8
+ closure, column, context, edition, error, exports, filter, forEach, froms ,
9
+ fudge, function, functions, global, id, isArray, join, json, keys, length,
10
10
level, line, lines, message, module, name, names, option, parameters,
11
- property, push, replace, role, signature, sort, stop, warnings
11
+ parent, property, push, replace, role, signature, sort, stop, warnings
12
12
*/
13
13
14
14
const rx_amp = / & / g;
@@ -142,7 +142,7 @@ export default {
142
142
let the_variable = context [ id ] ;
143
143
return (
144
144
the_variable . role === "variable"
145
- && the_variable . function === the_function
145
+ && the_variable . parent === the_function
146
146
) ;
147
147
} ) ) ;
148
148
detail ( "exception" , list . filter ( function ( id ) {
@@ -152,18 +152,18 @@ export default {
152
152
let the_variable = context [ id ] ;
153
153
return (
154
154
the_variable . closure === true
155
- && the_variable . function === the_function
155
+ && the_variable . parent === the_function
156
156
) ;
157
157
} ) ) ;
158
158
detail ( "outer" , list . filter ( function ( id ) {
159
159
let the_variable = context [ id ] ;
160
160
return (
161
- the_variable . function !== the_function
162
- && the_variable . function . id !== "(global)"
161
+ the_variable . parent !== the_function
162
+ && the_variable . parent . id !== "(global)"
163
163
) ;
164
164
} ) ) ;
165
165
detail ( mode , list . filter ( function ( id ) {
166
- return context [ id ] . function . id === "(global)" ;
166
+ return context [ id ] . parent . id === "(global)" ;
167
167
} ) ) ;
168
168
detail ( "label" , list . filter ( function ( id ) {
169
169
return context [ id ] . role === "label" ;
0 commit comments