This repository has been archived by the owner on Dec 31, 2017. It is now read-only.
forked from SitePen/js-doc-parse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP. Start pulling in metadata from comments.
Also update the README to be more EXCITING!
- Loading branch information
Showing
8 changed files
with
262 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
define([ 'dojo/_base/lang' ], function (lang) { | ||
function Metadata(/**Object*/ kwArgs) { | ||
if (!(this instanceof Metadata)) { | ||
throw new Error('Metadata is a constructor'); | ||
} | ||
|
||
this.examples = []; | ||
this.tags = []; | ||
|
||
lang.mixin(this, kwArgs); | ||
} | ||
|
||
Metadata.prototype = { | ||
constructor: Metadata, | ||
|
||
/** | ||
* A more detailed value type description. | ||
* @type string | ||
*/ | ||
type: undefined, | ||
|
||
/** | ||
* A brief summary of the associated value. | ||
* @type string | ||
*/ | ||
summary: undefined, | ||
|
||
/** | ||
* A detailed description of the associated value. | ||
* @type string | ||
*/ | ||
description: undefined, | ||
|
||
/** | ||
* Code examples. | ||
* @type Array.<string> | ||
*/ | ||
examples: [], | ||
|
||
/** | ||
* Tags. | ||
* @type Array.<string> | ||
*/ | ||
tags: [] | ||
}; | ||
|
||
return Metadata; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.