Sha256: b8557ec8f9382809a8b02f46ebc06c7c987f30edf303b95914574938b875e605

Contents?: true

Size: 1.19 KB

Versions: 129

Compression:

Stored size: 1.19 KB

Contents

JSDOC.PluginManager.registerPlugin(
	"JSDOC.tagSynonyms",
	{
		onDocCommentSrc: function(comment) {
			comment.src = comment.src.replace(/@methodOf\b/i, "@function\n@memberOf");
			comment.src = comment.src.replace(/@fieldOf\b/i, "@field\n@memberOf");
		},
		
		onDocCommentTags: function(comment) {
			for (var i = 0, l = comment.tags.length; i < l; i++) {
				var title = comment.tags[i].title.toLowerCase();
				var syn;
				if ((syn = JSDOC.tagSynonyms.synonyms["="+title])) {
					comment.tags[i].title = syn;
				}
			}
		}
	}
);

new Namespace(
	"JSDOC.tagSynonyms",
	function() {
		JSDOC.tagSynonyms.synonyms = {
			"=member":             "memberOf",
			"=memberof":           "memberOf",
			"=description":        "desc",
			"=exception":          "throws",
			"=argument":           "param",
			"=returns":            "return",
			"=classdescription":   "class",
			"=fileoverview":       "overview",
			"=extends":            "augments",
			"=base":               "augments",
			"=projectdescription": "overview",
			"=classdescription":   "class",
			"=link":               "see",
			"=borrows":            "inherits",
			"=scope":              "lends",
			"=construct":          "constructor"
		}
	}
);

Version data entries

129 entries across 128 versions & 13 rubygems

Version Path
hquery-patient-api-1.1.1 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
hquery-patient-api-1.1.0 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/JSV/jsdoc-toolkit/app/plugins/tagSynonyms.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/JSV/jsdoc-toolkit/app/plugins/tagSynonyms.js
quentonc-jsdoc_helper-0.0.2 test/ext/jsdoc-toolkit/app/plugins/tagSynonyms.js
quentonc-jsdoc_helper-0.0.2 ext/jsdoc-toolkit/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.20090721145236 vendor/jsdoc/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.20090721145251 vendor/jsdoc/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.20090721145280 vendor/jsdoc/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.20090721145281 vendor/jsdoc/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.20090721145282 vendor/jsdoc/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.20090721145285 vendor/jsdoc/app/plugins/tagSynonyms.js
sproutit-sproutcore-1.0.203 vendor/jsdoc/app/plugins/tagSynonyms.js
hquery-patient-api-1.0.4 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
hquery-patient-api-1.0.3 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
hquery-patient-api-1.0.2 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
hquery-patient-api-1.0.1 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
jsc3d-rails-1.0 vendor/assets/javascripts/tools/doc_generator/app/plugins/tagSynonyms.js
hquery-patient-api-1.0.0 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js
hquery-patient-api-0.3.0 doc/jsdoc-toolkit/app/plugins/tagSynonyms.js