//
if( varDef != null )
{
// Set up a dependency btwn the class the setter is being declared in,
// and mx.events.PropertyChangeEvents.
ASScope containingScope = (ASScope)varDef.getContainingScope();
containingScope.findPropertyQualified(classScope.getProject(),
NamespaceDefinition.createPackagePublicNamespaceDefinition(NAMESPACE_MX_EVENTS.getName()),
NAME_PROPERTY_CHANGE_EVENT.getBaseName(),
DependencyType.EXPRESSION);
// TODO: remove this once mxmlc pulls in the correct dependencies.
// TODO: This should be a dependency of PropertyChangeEvent, but it doesn't get emitted into the swf
// TODO: unless the dependency is added here.
containingScope.findPropertyQualified(classScope.getProject(),
NamespaceDefinition.createPackagePublicNamespaceDefinition(NAMESPACE_MX_EVENTS.getName()),
NAME_PROPERTY_CHANGE_EVENT_KIND.getBaseName(),
DependencyType.EXPRESSION);
}