2020-06-30 12:47:33 +02:00
Try to imagine using the standard Flex API without ASDoc. It would be a nightmare, because ASDoc is the only way to understand of the contract of the API.
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
Documenting an API with ASDoc increases the productivity of the developers use it.
== Noncompliant Code Example
----
public class MyClass {
public var myLabel:String;
public function myMethod(param1:String):Boolean {...}
}
----
== Compliant Solution
----
/**
* my doc
*/
public class MyClass {
/**
* my doc
*/
public var myLabel:String;
/**
* my doc
* @param param1 my doc
* @return my doc
*/
public function myMethod(param1:String):Boolean {...}
}
----
== Exceptions
2021-01-27 13:42:22 +01:00
Classes or class elements with an ASDoc ``++@private++`` comment are ignored by this rule.
2020-06-30 12:47:33 +02:00
2021-02-02 15:02:10 +01:00
2020-06-30 12:47:33 +02:00
----
/**
* @private // This class and all its elements are ignored
*/
public class MyClass { // Compliant
public var myLabel:String; // Compliant
}
public class AnotherClass { // Noncompliant; class not @private and not documented
/**
* @private
*/
public var name:String; // Compliant
}
----