<% if (comment.ctx) { %>
| <%=types[comment.ctx.type] %> |
<%=comment.ctx.string %> |
<%=comment.ctx.receiver %> |
<%=comment.ctx.name %> |
<% } %>
<% for (var j = 0, k = comment.tags.length; j < k; j++) {
var tag = comment.tags[j];
switch (tag.type) {
case 'return':
%>
| <%=types[tag.type]%> |
<%=tag.types && tag.types.join(',')%> |
<%=tag.description%> |
<% break;
case 'param':
%>
| <%=types[tag.type]%> |
<%=tag.name%>(<%=tag.types && tag.types.join(',')%>) |
<%=tag.description%> |
<% break;
case 'api':
%>
| <%=types[tag.type]%> |
<%=tag.visibility%> |
<% break;
case 'example':
%>
| <%=types[tag.type]%> |
<%=tag.string%> |
<% break;
case 'exception':
%>
| <%=types[tag.type]%> |
<%=tag.string%> |
<% break;
case 'callmethod':
%>
| <%=types[tag.type]%> |
<%=tag.string%> |
<% break;
default:%>
| <%=types[tag.type]%> |
<%=tag.types && tag.types.join(',')%> |
<%=tag.name%> |
<%=tag.description%> |
<% } %>
<% } %>
<% if (comment.code && options.outputSourceFiles) { %>
| 代码 | <%=comment.code%>
|
<% } %>
<% } %>