/**
  * Sets the definition of the ActionScript class to which this node refers, from its fully
  * qualified name.
  *
  * @param project An {@code ICompilerProject}, used for finding the class by name.
  * @param qname A fully qualified class name.
  */
 void setClassReference(FlexProject project, String qname) {
   ASProjectScope projectScope = (ASProjectScope) project.getScope();
   IDefinition definition = projectScope.findDefinitionByName(qname);
   // TODO This method is getting called by MXML tree-building
   // with an interface qname if there is a property whose type is an interface.
   // Until databinding is implemented, we need to protect against this.
   if (definition instanceof IClassDefinition)
     setClassReference(project, (IClassDefinition) definition);
 }