Hi
When attempting to run asdoc on a project I get a bunch of Ambiguous
reference errors wherever the code within a class refers to a public
property of that class that has both a getter and a setter. Is there a
way to get around this, there are lots of cases of this and they work
fine and are valid so I don't want to have to change them all to get
asdoc produced.
Example (the relevant bits of an actual case):
public class MyClass
{
private var _template:Template;
private var _status:Status;
private var _submit:Boolean;
public function get template():Template {
return _template;
}
private function set template(value:Template):void {
_template = value;
}
public function get submit():Boolean {
return _submit;
}
private function set submit(value:Boolean):void {
_submit = value;
}
public function get status():Status {
return _status;
}
private function set status(value:Status):void {
_status = value;
}
public function toString():String {
return "Plan: status=" + status + ",template=" +
template;
}
private function validateStatus(messages:Array):void {
if (status == null) {
// Do something
}
}
}
Produces:
C:\Workspaces\...\model\dom\MyClass.as(60): col: 29 Error: Ambiguous
reference to status.
return "Plan: status=" + status + ",template=" +
template;
^
C:\Workspaces\...\model\dom\MyClass.as(60): col: 53 Error: Ambiguous
reference to template.
return "Plan: status=" + status + ",template=" +
template;
^
C:\Workspaces\...\model\dom\MyClass.as(64): col: 8 Error: Ambiguous
reference to status.
if (status == null) {
^
________________________________
Tim Stewart
Solution Architect
Tel: \+61 2 9976 4500 ext. 2032 Fax: \+61 2 9976 5055
Mobile : 0424 225924
Web: www.avoka.com Email: [EMAIL PROTECTED]