Binding getBinding0(char[] name, int mask) {
	Binding binding;
	if ( (mask&(Binding.VARIABLE|Binding.FIELD))!=0)
	{
		binding=getBinding1(name,Binding.VARIABLE|Binding.FIELD);
		if (binding!=null)
			return binding;
	}
	if ( (mask&(Binding.TYPE))!=0)
	{
		binding=getBinding1(name,Binding.TYPE);
		if (binding!=null)
			return binding;
	}
	if ( (mask&(Binding.METHOD))!=0)
	{
		binding=getBinding1(name,Binding.METHOD);
		if (binding!=null)
			return binding;
	}
	if ( (mask&(Binding.COMPILATION_UNIT))!=0)
	{
		name=CharOperation.replaceOnCopy(name, CompilationUnitScope.FILENAME_DOT_SUBSTITUTION, '.');
		if (knownCompUnits == null)
			return null;
		return knownCompUnits.get(name);
		
	}
	return null;
}