-
Notifications
You must be signed in to change notification settings - Fork 0
Parser
cloakedcode edited this page Jul 4, 2011
·
4 revisions
Parses code and spits out block comments, nicely broken down.
parseFile(self, file)
Parse comments in the given file.
| file | String | Path of file. |
Array
MarkdownTemplate::renderComments
parseComments(self, str)
Parse comments in the given code.
| str | String | String to parse. |
Array
parseComment(self, s)
Parse the given comment s.
The comment object returned contains the following
-
tagsarray of tag objects -
descriptionthe first line of the comment -
bodylines following the description -
contentboth the description and the body -
isPrivateTrue when "@api private" is used
| s | String |
Dictionary
parseTag(self, str)
Parse tag string "@param {Array} name description" etc.
| str | String |
Dictionary
parseTagTypes(self, str)
Parse tag type string "{Array|Object}" etc.
| str | String |
Array
parseCodeContext(self, str)
Parse the context from the given str of code.
This method attempts to discover the context for the comment based on it's code.
| str | String |
Dictionary
Turns comments into markdown.
renderComments(self, comments)
Renders a bunch of comments as markdown.