INamespaceDefinition packageNS = ((CompilerProject)project).getWorkspace().getPackageNamespaceDefinitionCache().get(packageName, false);
foundDefinition = containingScope.findPropertyQualified(compilerProject, packageNS, unqualifiedName, dt, true);
}
else
{
foundDefinition = containingScope.findProperty(compilerProject, typeName, dt, true);
}
assert (foundDefinition == null) || foundDefinition.isInProject(project);
if (foundDefinition instanceof TypeDefinitionBase)
return (TypeDefinitionBase)foundDefinition;