code: private List<PDefinition> getAllDefinitions(PPattern pattern, PType ptype,
  			NameScope scope)
  	{
  		try
  		{
  			return pattern.apply(af.getAllDefinitionLocator(), new AllDefinitionLocator.NewQuestion(ptype, scope));
  		} catch (AnalysisException e)
  		{
  			return null;
  		}
  
  	}
docs: Get a complete list of all definitions, including duplicates. This method should only be used only by PP