Skip to content

Commit bad9c47

Browse files
committed
Add @variation support
1 parent a597741 commit bad9c47

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

lib/parse.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ var flatteners = {
162162
// 'type'
163163
'typedef': flattenTypedName,
164164
'var': synonym('member'),
165-
// 'variation'
165+
'variation': function (result, tag) {
166+
result.variation = tag.variation;
167+
},
166168
'version': flattenDescription,
167169
'virtual': synonym('abstract')
168170
};

test/lib/parse.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,14 @@ test('parse - @var', function (t) {
499499
t.end();
500500
});
501501

502+
test('parse - @variation', function (t) {
503+
t.equal(evaluate(function () {
504+
/** @variation 1 */
505+
})[0].variation, 1, 'see');
506+
507+
t.end();
508+
});
509+
502510
test('parse - @version', function (t) {
503511
t.end();
504512
});

0 commit comments

Comments
 (0)