-
Notifications
You must be signed in to change notification settings - Fork 23
General asdoc informations
Zwetan Kjukov edited this page Sep 9, 2018
·
32 revisions
ASDoc is a command-line tool part of the Flex SDK.
char | asdoc | comment |
---|---|---|
< | < | |
> | > | |
& | & | do not use & |
# | # | |
* | * | |
? | — | Em dash |
™ | ™ | Trademark symbol |
  | Nonbreaking space | |
® | ® | Registered trademark symbol |
° | ° | Degree symbol |
@ | @ |
Copies an ASDoc comment from the referenced location.
/**
* @copy #stop
*/
public function terminate():void
{
//...
}
test
test
test
test
test
test
test
test
test
test
test
tag usage | description |
---|---|
@see "some text" |
text string |
@see http://www.google.com |
external web site |
@see http://www.google.com Visit Google |
external web site with text description |
@see https://www.google.com |
HTTPS link will not work |
@see page.html |
local HTML page |
@see SomeClass |
class in same package |
@see flash.display.TextField |
class in different package |
@see flash.display.TextField TextField |
class in different package with text description |
@see String |
top level class |
@see String#charCodeAt() |
method in top level class |
@see String#charCodeAt() String.charCodeAt() |
method in top level class with text description |
@see #someMethod() |
method in same class of see tag |
@see flash.utils.#clearInterval() |
package level function |
@see flash.ui.ContextMenu#customItems |
property in class in different package |
@see C.stdio#EOF |
package level constant |
@see C.stdio#EOF EOF |
package level constant with text description |
test
test
syntax:
[Deprecated(message="some reason why",replacement="something",since="foobar")]
-
message (optional)
indicate a message for the deprecation -
replacement (optional)
indicate anothermethod
orproperty
orclass
as a replacement -
since (optional)
allow to indicate since which version or product or time it is deprecated
notes:
If you use the message argument then you can not use replacement.
For replacement you can use
- a method in the same class
[Deprecated(replacement="otherMethod()")
- a class name (in the same package) followed by a method
[Deprecated(replacement="MyOtherClass.somethingElse()")
usage:
- no arguments
[Deprecated]
var property:String = "foobar;
will display in the documentation
<b>Deprecated:</b> Deprecated
- message argument only
[Deprecated(message="some reason why")]
var property:String = "foobar;
will display in the documentation
<b>Deprecated:</b> some reason why
- message and since arguments
[Deprecated(message="some reason why",since="2018/01/23: ")]
var property:String = "foobar;
will display in the documentation
<b>Deprecated Since</b> 2018/01/23: some reason why
Note:
Yes you will need to manually add the spacing in the since argument
- replacement argument only
[Deprecated(replacement="something")]
var property:String = "foobar;
will display in the documentation
<b>Deprecated:</b> Please Use <a href="#something">something</a>
- since argument only
[Deprecated(since="foobar")]
var property:String = "foobar;
will display in the documentation
<b>Deprecated Since</b> foobar
- replacement and since arguments
[Deprecated(replacement="something",since="foobar")]
var property:String = "foobar;
will display in the documentation
<b>Deprecated Since</b> foobar: Please Use <a href="#something">something</a>