Bug 48617 Error range for unresolved names in qualified references
20031211 1. in the following code public void foo() { int i= xxx.yyy; } 2. if 'xxx' is undefined, but the compiler marks 'xxx.yyy' as unresolved. It would be better to only mark 'xxx'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java
try {
			String str= cu.getBuffer().getText(expr.getStartPosition(), expr.getLength());
			for (int i= 0; i < str.length(); i++) {
				if (Strings.isLineDelimiterChar(str.charAt(i))) {
					return def;
				}
			}
			ASTMatcher matcher= new ASTMatcher();
			for (int i= 0; i < arguments.size(); i++) {
				if (i != index && matcher.safeSubtreeMatch(expr, arguments.get(i))) {
					return def;
				}
			}
			return '\'' + str + '\'';
			
		} catch (JavaModelException e) {
			JavaPlugin.log(e);
		}
		return def;
	}
	private static void doMoreArguments(IInvocationContext context, IProblemLocation problem, ASTNode invocationNode, List arguments, ITypeBinding[] argTypes, IMethodBinding methodBinding, Collection proposals) throws CoreException {
		ITypeBinding[] paramTypes= methodBinding.getParameterTypes();
		int k= 0, nSkipped= 0;
		int diff= argTypes.length - paramTypes.length;
		int[] indexSkipped= new int[diff];
		for (int i= 0; i < argTypes.length; i++) {
			if (k < paramTypes.length && TypeRules.canAssign(argTypes[i], paramTypes[k])) {
				k++; 
			} else {
				if (nSkipped >= diff) {