@@ -19,7 +19,7 @@ var flatteners = {
19
19
* @param {Object } tag the tag
20
20
* @returns {undefined } has side-effects
21
21
*/
22
- access : function ( result , tag ) {
22
+ access ( result , tag ) {
23
23
// doctrine ensures that tag.access is valid
24
24
result . access = tag . access ;
25
25
} ,
@@ -33,7 +33,7 @@ var flatteners = {
33
33
* @param {Object } tag the tag
34
34
* @returns {undefined } has side-effects
35
35
*/
36
- augments : function ( result , tag ) {
36
+ augments ( result , tag ) {
37
37
// Google variation of augments/extends tag:
38
38
// uses type with brackets instead of name.
39
39
// https://github.com/google/closure-library/issues/746
@@ -55,7 +55,7 @@ var flatteners = {
55
55
* @param {Object } tag the tag
56
56
* @returns {undefined } has side-effects
57
57
*/
58
- callback : function ( result , tag ) {
58
+ callback ( result , tag ) {
59
59
result . kind = 'typedef' ;
60
60
61
61
if ( tag . description ) {
@@ -92,7 +92,7 @@ var flatteners = {
92
92
* @param {Object } tag the tag
93
93
* @returns {undefined } has side-effects
94
94
*/
95
- event : function ( result , tag ) {
95
+ event ( result , tag ) {
96
96
result . kind = 'event' ;
97
97
98
98
if ( tag . description ) {
@@ -106,7 +106,7 @@ var flatteners = {
106
106
* @param {Object } tag the tag
107
107
* @returns {undefined } has side-effects
108
108
*/
109
- example : function ( result , tag ) {
109
+ example ( result , tag ) {
110
110
if ( ! tag . description ) {
111
111
result . errors . push ( {
112
112
message : '@example without code' ,
@@ -135,7 +135,7 @@ var flatteners = {
135
135
* @param {Object } tag the tag
136
136
* @returns {undefined } has side-effects
137
137
*/
138
- external : function ( result , tag ) {
138
+ external ( result , tag ) {
139
139
result . kind = 'external' ;
140
140
141
141
if ( tag . description ) {
@@ -149,7 +149,7 @@ var flatteners = {
149
149
* @param {Object } tag the tag
150
150
* @returns {undefined } has side-effects
151
151
*/
152
- file : function ( result , tag ) {
152
+ file ( result , tag ) {
153
153
result . kind = 'file' ;
154
154
155
155
if ( tag . description ) {
@@ -166,7 +166,7 @@ var flatteners = {
166
166
* @param {Object } result target comment
167
167
* @returns {undefined } has side-effects
168
168
*/
169
- global : function ( result ) {
169
+ global ( result ) {
170
170
result . scope = 'global' ;
171
171
} ,
172
172
host : synonym ( 'external' ) ,
@@ -179,7 +179,7 @@ var flatteners = {
179
179
* @param {Object } result target comment
180
180
* @returns {undefined } has side-effects
181
181
*/
182
- inner : function ( result ) {
182
+ inner ( result ) {
183
183
result . scope = 'inner' ;
184
184
} ,
185
185
/**
@@ -188,7 +188,7 @@ var flatteners = {
188
188
* @param {Object } result target comment
189
189
* @returns {undefined } has side-effects
190
190
*/
191
- instance : function ( result ) {
191
+ instance ( result ) {
192
192
result . scope = 'instance' ;
193
193
} ,
194
194
/**
@@ -198,7 +198,7 @@ var flatteners = {
198
198
* @param {Object } tag the tag
199
199
* @returns {undefined } has side-effects
200
200
*/
201
- interface : function ( result , tag ) {
201
+ interface ( result , tag ) {
202
202
result . interface = true ;
203
203
if ( tag . description ) {
204
204
result . name = tag . description ;
@@ -211,7 +211,7 @@ var flatteners = {
211
211
* @param {Object } tag the tag
212
212
* @returns {undefined } has side-effects
213
213
*/
214
- kind : function ( result , tag ) {
214
+ kind ( result , tag ) {
215
215
// doctrine ensures that tag.kind is valid
216
216
result . kind = tag . kind ;
217
217
} ,
@@ -235,7 +235,7 @@ var flatteners = {
235
235
* @param {Object } tag the tag
236
236
* @returns {undefined } has side-effects
237
237
*/
238
- param : function ( result , tag ) {
238
+ param ( result , tag ) {
239
239
var param /*: CommentTag */ = {
240
240
title : 'param' ,
241
241
name : tag . name ,
@@ -265,7 +265,7 @@ var flatteners = {
265
265
* @param {Object } result target comment
266
266
* @returns {undefined } has side-effects
267
267
*/
268
- private : function ( result ) {
268
+ private ( result ) {
269
269
result . access = 'private' ;
270
270
} ,
271
271
prop : synonym ( 'property' ) ,
@@ -276,7 +276,7 @@ var flatteners = {
276
276
* @param {Object } tag the tag
277
277
* @returns {undefined } has side-effects
278
278
*/
279
- property : function ( result , tag ) {
279
+ property ( result , tag ) {
280
280
var property /*: CommentTag */ = {
281
281
title : 'property' ,
282
282
name : tag . name ,
@@ -299,7 +299,7 @@ var flatteners = {
299
299
* @param {Object } result target comment
300
300
* @returns {undefined } has side-effects
301
301
*/
302
- protected : function ( result ) {
302
+ protected ( result ) {
303
303
result . access = 'protected' ;
304
304
} ,
305
305
/**
@@ -308,7 +308,7 @@ var flatteners = {
308
308
* @param {Object } result target comment
309
309
* @returns {undefined } has side-effects
310
310
*/
311
- public : function ( result ) {
311
+ public ( result ) {
312
312
result . access = 'public' ;
313
313
} ,
314
314
readonly : flattenBoolean ,
@@ -321,7 +321,7 @@ var flatteners = {
321
321
* @param {Object } tag the tag
322
322
* @returns {undefined } has side-effects
323
323
*/
324
- returns : function ( result , tag ) {
324
+ returns ( result , tag ) {
325
325
var returns /*: CommentTag */ = {
326
326
description : parseMarkdown ( tag . description ) ,
327
327
title : 'returns'
@@ -340,7 +340,7 @@ var flatteners = {
340
340
* @param {Object } tag the tag
341
341
* @returns {undefined } has side-effects
342
342
*/
343
- see : function ( result , tag ) {
343
+ see ( result , tag ) {
344
344
result . sees . push ( parseMarkdown ( tag . description ) ) ;
345
345
} ,
346
346
since : flattenDescription ,
@@ -350,7 +350,7 @@ var flatteners = {
350
350
* @param {Object } result target comment
351
351
* @returns {undefined } has side-effects
352
352
*/
353
- static : function ( result ) {
353
+ static ( result ) {
354
354
result . scope = 'static' ;
355
355
} ,
356
356
summary : flattenMarkdownDescription ,
@@ -362,7 +362,7 @@ var flatteners = {
362
362
* @param {Object } tag the tag
363
363
* @returns {undefined } has side-effects
364
364
*/
365
- throws : function ( result , tag ) {
365
+ throws ( result , tag ) {
366
366
var throws = { } ;
367
367
368
368
if ( tag . description ) {
@@ -382,7 +382,7 @@ var flatteners = {
382
382
* @param {Object } tag the tag
383
383
* @returns {undefined } has side-effects
384
384
*/
385
- todo : function ( result , tag ) {
385
+ todo ( result , tag ) {
386
386
result . todos . push ( parseMarkdown ( tag . description ) ) ;
387
387
} ,
388
388
tutorial : todo ,
@@ -396,7 +396,7 @@ var flatteners = {
396
396
* @param {Object } tag the tag
397
397
* @returns {undefined } has side-effects
398
398
*/
399
- variation : function ( result , tag ) {
399
+ variation ( result , tag ) {
400
400
result . variation = tag . variation ;
401
401
} ,
402
402
version : flattenDescription ,
0 commit comments