Skip to content

Commit 0011523

Browse files
committed
Add @abstract support
1 parent 49a1cd9 commit 0011523

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/parse.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
var doctrine = require('doctrine');
44

55
var flatteners = {
6+
'abstract': function (result) {
7+
result.abstract = true;
8+
},
69
'access': function (result, tag) {
710
result.access = tag.access;
811
},

test/lib/parse.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ function evaluate(fn, filename) {
1010
});
1111
}
1212

13+
test('parse - @abstract', function (t) {
14+
t.equal(evaluate(function () {
15+
/** @abstract */
16+
})[0].abstract, true);
17+
18+
t.end();
19+
});
20+
1321
test('parse - @access', function (t) {
1422
t.equal(evaluate(function () {
1523
/** @access public */

0 commit comments

Comments
 (0)