зеркало из https://github.com/github/ruby.git
At Ryan Davis' suggestion, honor visibility modifers if guarded by a statement modifier
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
41e4c5de36
Коммит
cc7c48ff6a
|
@ -1,3 +1,9 @@
|
||||||
|
Thu May 20 12:34:39 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_visibility):
|
||||||
|
At Ryan Davis' suggestion, honor visibility modifers if guarded by a
|
||||||
|
statement modifier
|
||||||
|
|
||||||
Thu May 20 12:22:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu May 20 12:22:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (have_type): do not check pointer to incomplete type,
|
* lib/mkmf.rb (have_type): do not check pointer to incomplete type,
|
||||||
|
|
|
@ -2450,7 +2450,13 @@ module RDoc
|
||||||
end
|
end
|
||||||
|
|
||||||
skip_tkspace_comment(false)
|
skip_tkspace_comment(false)
|
||||||
if peek_tk.kind_of? TkNL
|
case peek_tk
|
||||||
|
# Ryan Davis suggested the extension to ignore modifiers, because he
|
||||||
|
# often writes
|
||||||
|
#
|
||||||
|
# protected unless $TESTING
|
||||||
|
#
|
||||||
|
when TkNL, TkUNLESS_MOD, TkIF_MOD
|
||||||
# error("Missing argument") if singleton
|
# error("Missing argument") if singleton
|
||||||
container.ongoing_visibility = vis
|
container.ongoing_visibility = vis
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче