<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>trunk/as2api</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">doc_comment.rb</a></tt></td><td align="right" id="added">+35</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center">285 -> 286</td></tr>
<tr class="alt"><td><tt>output/html/<a href="#file2">core_pages.rb</a></tt></td><td align="right" id="added">+14</td><td></td><td nowrap="nowrap" align="center">285 -> 286</td></tr>
<tr><td></td><td align="right" id="added">+49</td><td align="right" id="removed">-1</td><td></td></tr>
</table>
<small id="info">2 modified files</small><br />
<pre class="comment">
@overload support
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">trunk/as2api</span><br />
<div class="fileheader"><big><b>doc_comment.rb</b></big> <small id="info">285 -> 286</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/doc_comment.rb        2006-03-07 21:27:06 UTC (rev 285)
+++ trunk/as2api/doc_comment.rb        2006-03-07 22:05:58 UTC (rev 286)
@@ -61,10 +61,14 @@
</small></pre><pre class="diff" id="context"> has_blocktype?(ReturnBlockTag)
end
</pre><pre class="diff" id="added">+ def has_overload?
+ has_blocktype?(OverloadBlockTag)
+ end
+
</pre><pre class="diff" id="context"> # Does the method comment include any info in addition to any basic
# description block?
def has_method_additional_info?
</pre><pre class="diff" id="removed">- has_params? || has_return? || has_exceptions? || has_seealso?
</pre><pre class="diff" id="added">+ has_params? || has_return? || has_exceptions? || has_seealso?<span id="addedchars"> || has_overload?</span>
</pre><pre class="diff" id="context"> end
# Does the field comment include any info in addition to any basic description
</pre><pre class="diff"><small id="info">@@ -81,6 +85,10 @@
</small></pre><pre class="diff" id="context"> each_block_of_type(SeeBlockTag) {|block| yield block }
end
</pre><pre class="diff" id="added">+ def each_overload
+ each_block_of_type(OverloadBlockTag) {|block| yield block }
+ end
+
</pre><pre class="diff" id="context"> def find_param(param_match)
each_block_of_type(ParamBlockTag) do |block|
return block if param_match === block.param_name
</pre><pre class="diff"><small id="info">@@ -281,7 +289,10 @@
</small></pre><pre class="diff" id="context"> class ReturnBlockTag < BlockTag
end
</pre><pre class="diff" id="added">+class OverloadBlockTag < BlockTag
+end
</pre><pre class="diff" id="context">
</pre><pre class="diff" id="added">+
</pre><pre class="diff" id="context"> class InlineParser
def start(type_resolver, lineno)
@type_resolver = type_resolver
</pre><pre class="diff"><small id="info">@@ -474,6 +485,24 @@
</small></pre><pre class="diff" id="context"> end
</pre><pre class="diff" id="added">+class OverloadParser < BlockParser
+ def begin_block(type_resolver, lineno)
+ super(type_resolver, lineno)
+ @data = OverloadBlockTag.new
+ end
+
+ def end_block
+ if @data.inlines.first =~ /\A\s*(#.*)/
+ link = create_link(@type_resolver, $1, @lineno)
+ unless link.nil?
+        @data.inlines[0] = link
+ end
+ end
+ @data
+ end
+end
+
+
</pre><pre class="diff" id="context"> #############################################################################
</pre><pre class="diff"><small id="info">@@ -485,6 +514,7 @@
</small></pre><pre class="diff" id="context"> config.add_block_parser("return", build_return_block_parser)
config.add_block_parser("throws", build_throws_block_parser)
config.add_block_parser("exception", build_throws_block_parser)
</pre><pre class="diff" id="added">+ config.add_block_parser("overload", build_overload_block_parser)
</pre><pre class="diff" id="context"> return config
end
</pre><pre class="diff"><small id="info">@@ -550,6 +580,10 @@
</small></pre><pre class="diff" id="context"> def build_author_block_parser
NilBlockParser.new # ignore @author tags
end
</pre><pre class="diff" id="added">+
+ def build_overload_block_parser
+ OverloadParser.new
+ end
</pre><pre class="diff" id="context"> end
# vim:softtabstop=2:shiftwidth=2
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname">trunk/as2api/output/html</span><br />
<div class="fileheader"><big><b>core_pages.rb</b></big> <small id="info">285 -> 286</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/output/html/core_pages.rb        2006-03-07 21:27:06 UTC (rev 285)
+++ trunk/as2api/output/html/core_pages.rb        2006-03-07 22:05:58 UTC (rev 286)
@@ -341,6 +341,9 @@
</small></pre><pre class="diff" id="context">          if comment_data.has_seealso?
         document_seealso(comment_data)
         end
</pre><pre class="diff" id="added">+         if comment_data.has_overload?
+         document_overload(comment_data)
+         end
</pre><pre class="diff" id="context">          end
        else
         documented_method = method.inherited_comment
</pre><pre class="diff"><small id="info">@@ -463,6 +466,17 @@
</small></pre><pre class="diff" id="context"> end
end
</pre><pre class="diff" id="added">+ def document_overload(comment_data)
+ html_h4(_("Overloaded"))
+ html_ul("class"=>"extra_info") do
+ comment_data.each_overload do |overload_comment|
+        html_li do
+         output_doccomment_blocktag(overload_comment)
+        end
+ end
+ end
+ end
+
</pre><pre class="diff" id="context"> def document_specified_by(method)
html_h4(_("Specified By"))
html_p("class"=>"extra_info") do
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.11</small></center>
</body></html>