docs: fix docs for help-lint
parent
7da7a1d70e
commit
79db3ca594
|
@ -2,13 +2,13 @@ USING: help.markup help.syntax strings alien ;
|
|||
IN: cocoa.messages
|
||||
|
||||
HELP: send
|
||||
{ $values { "receiver" alien } { "args..." "method arguments" } { "selector" string } { "return..." "value returned by method, if any" } }
|
||||
{ $values { "receiver" alien } { "args..." "method arguments" } { "signature" "signature" } { "selector" string } { "return..." "value returned by method, if any" } }
|
||||
{ $description "Sends an Objective C message named by " { $snippet "selector" } " to " { $snippet "receiver" } ". The arguments must be on the stack in left-to-right order." }
|
||||
{ $errors "Throws an error if the receiver does not recognize the message, or if the arguments have inappropriate types." }
|
||||
{ $notes "This word uses a special fast code path if " { $snippet "selector" } " is a literal and the word containing the call to " { $link send } " is compiled." } ;
|
||||
|
||||
HELP: super-send
|
||||
{ $values { "receiver" alien } { "args..." "method arguments" } { "selector" string } { "return..." "value returned by method, if any" } }
|
||||
{ $values { "receiver" alien } { "args..." "method arguments" } { "selector" string } { "signature" "signature" } { "return..." "value returned by method, if any" } }
|
||||
{ $description "Sends an Objective C message named by " { $snippet "selector" } " to the super class of " { $snippet "receiver" } ". Otherwise behaves identically to " { $link send } "." } ;
|
||||
|
||||
HELP: objc-class
|
||||
|
|
|
@ -74,7 +74,8 @@ PRIVATE>
|
|||
{ }
|
||||
[
|
||||
[[
|
||||
USING: assocs math kernel namespaces help.syntax help.lint help.lint.private ;
|
||||
USING: assocs definitions math kernel namespaces help.syntax
|
||||
help.lint help.lint.private ;
|
||||
IN: help.lint.tests
|
||||
<<
|
||||
: add-stuff ( x y -- z ) + ;
|
||||
|
@ -83,6 +84,7 @@ PRIVATE>
|
|||
>>
|
||||
H{ } clone lint-failures [ \ add-stuff check-word lint-failures get ] with-variable
|
||||
assoc-empty? [ "help-lint is broken" throw ] when
|
||||
<< \ add-stuff forget >>
|
||||
]] eval( -- )
|
||||
] unit-test
|
||||
|
||||
|
|
Loading…
Reference in New Issue