Add @variation support

This commit is contained in:
John Firebaugh 2016-03-14 18:29:05 -07:00
parent a597741550
commit bad9c47216
2 changed files with 11 additions and 1 deletions

View File

@ -162,7 +162,9 @@ var flatteners = {
// 'type'
'typedef': flattenTypedName,
'var': synonym('member'),
// 'variation'
'variation': function (result, tag) {
result.variation = tag.variation;
},
'version': flattenDescription,
'virtual': synonym('abstract')
};

View File

@ -499,6 +499,14 @@ test('parse - @var', function (t) {
t.end();
});
test('parse - @variation', function (t) {
t.equal(evaluate(function () {
/** @variation 1 */
})[0].variation, 1, 'see');
t.end();
});
test('parse - @version', function (t) {
t.end();
});