// locations= finder.getOccurrences();
// }
}
if (locations == null && fMarkMethodExitPoints) {
IOccurrencesFinder finder = OccurrencesFinderFactory
.createMethodExitsFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (locations == null && fMarkImplementors) {
IOccurrencesFinder finder = OccurrencesFinderFactory
.createIncludeFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (locations == null && fMarkBreakContinueTargets) {
IOccurrencesFinder finder = OccurrencesFinderFactory
.createBreakContinueTargetFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (locations == null && fMarkImplementors) {
IOccurrencesFinder finder = OccurrencesFinderFactory
.createImplementorsOccurrencesFinder();
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
if (selectedNode != null && selectedNode.getType() == ASTNode.VARIABLE) {
final Expression name = ((Variable) selectedNode).getName();
if (name instanceof Identifier) {
selectedNode = name;
}
}
if (locations == null
&& selectedNode != null
&& (selectedNode instanceof Identifier || (isScalarButNotInString(selectedNode)))) {
int type = PhpElementConciliator.concile(selectedNode);
if (markOccurrencesOfType(type)) {
IOccurrencesFinder finder = OccurrencesFinderFactory
.getOccurrencesFinder(type);
if (finder != null) {
if (finder.initialize(astRoot, selectedNode) == null) {
locations = finder.getOccurrences();
}
}
}
}