mirror of
https://github.com/hanzoai/protobuf.js.git
synced 2026-09-24 17:02:08 +00:00
26 lines
630 B
JavaScript
26 lines
630 B
JavaScript
"use strict";
|
|
|
|
var patch = require("./patch");
|
|
|
|
exports.defineTags = function(dictionary) {
|
|
patch.defineTags(dictionary);
|
|
|
|
dictionary.defineTag("template", {
|
|
mustHaveValue: true,
|
|
canHaveType: false,
|
|
canHaveName: false,
|
|
onTagged: function(doclet, tag) {
|
|
(doclet.templates || (doclet.templates = [])).push(tag.text);
|
|
}
|
|
});
|
|
|
|
dictionary.defineTag("tstype", {
|
|
mustHaveValue: true,
|
|
canHaveType: false,
|
|
canHaveName: false,
|
|
onTagged: function(doclet, tag) {
|
|
doclet.tsType = patch.normalizeType(tag.text);
|
|
}
|
|
});
|
|
};
|