We no longer add observable annotations to the constructor. Instead, we just mark getters (and for read/write properties also setters) with an observable annotation.
17 lines
457 B
JavaScript
17 lines
457 B
JavaScript
var util = require('util');
|
|
exports.defineTags = function(dictionary) {
|
|
dictionary.defineTag('todo', {
|
|
mustHaveValue: true,
|
|
canHaveType: true,
|
|
canHaveName: true,
|
|
onTagged: function(doclet, tag) {
|
|
var parts = tag.text.split(' ');
|
|
if (parts[0] === 'api') {
|
|
doclet.stability = parts.slice(1).join(' ') || 'experimental';
|
|
} else if (parts[0] === 'observable') {
|
|
doclet.observable = '';
|
|
}
|
|
}
|
|
});
|
|
};
|