mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
23 lines
717 B
JavaScript
23 lines
717 B
JavaScript
exports.handlers = {
|
|
fileBegin: jasmine.createSpy('fileBegin'),
|
|
beforeParse: jasmine.createSpy('beforeParse'),
|
|
jsdocCommentFound: jasmine.createSpy('jsdocCommentFound'),
|
|
symbolFound: jasmine.createSpy('symbolFound'),
|
|
newDoclet: jasmine.createSpy('newDoclet'),
|
|
fileComplete: jasmine.createSpy('fileComplete')
|
|
};
|
|
|
|
exports.defineTags = function(dictionary) {
|
|
dictionary.defineTag("foo", {
|
|
canHaveName: true,
|
|
onTagged: function(doclet, tag) {
|
|
doclet.foo = true;
|
|
}
|
|
});
|
|
};
|
|
|
|
exports.nodeVisitor = {
|
|
visitNode: jasmine.createSpy("plugin 1 visitNode").andCallFake(function(node, e, parser, currentSourceName) {
|
|
e.stopPropagation = true;
|
|
})
|
|
}; |