Lines 1515-1521
Link Here
|
1515 |
if (unitScope.resolveSingleImport(importBinding) != null && importBinding.resolvedImport instanceof FieldBinding) { |
1515 |
if (unitScope.resolveSingleImport(importBinding) != null && importBinding.resolvedImport instanceof FieldBinding) { |
1516 |
foundField = (FieldBinding) importBinding.resolvedImport; |
1516 |
foundField = (FieldBinding) importBinding.resolvedImport; |
1517 |
ImportReference importReference = importBinding.reference; |
1517 |
ImportReference importReference = importBinding.reference; |
1518 |
if (importReference != null) importReference.used = true; |
1518 |
if (importReference != null && needResolve) importReference.used = true; |
1519 |
invocationSite.setActualReceiverType(foundField.declaringClass); |
1519 |
invocationSite.setActualReceiverType(foundField.declaringClass); |
1520 |
if (foundField.isValidBinding()) { |
1520 |
if (foundField.isValidBinding()) { |
1521 |
return foundField; |
1521 |
return foundField; |
Lines 1541-1547
Link Here
|
1541 |
} else if (temp.isStatic()) { |
1541 |
} else if (temp.isStatic()) { |
1542 |
if (foundField == temp) continue; |
1542 |
if (foundField == temp) continue; |
1543 |
ImportReference importReference = importBinding.reference; |
1543 |
ImportReference importReference = importBinding.reference; |
1544 |
if (importReference != null) importReference.used = true; |
1544 |
if (importReference != null && needResolve) importReference.used = true; |
1545 |
if (foundInImport) |
1545 |
if (foundInImport) |
1546 |
// Answer error binding -- import on demand conflict; name found in two import on demand packages. |
1546 |
// Answer error binding -- import on demand conflict; name found in two import on demand packages. |
1547 |
return new ProblemReferenceBinding(name, null, ProblemReasons.Ambiguous); |
1547 |
return new ProblemReferenceBinding(name, null, ProblemReasons.Ambiguous); |