if (expression == null) {
return sourcePriority;
}
final ExpressionInfo info = expression.computeExpressionInfo();
// Add the default variable, if any.
if (info.hasDefaultVariableAccess()) {
sourcePriority |= ISources.ACTIVE_CURRENT_SELECTION;
}
// Add all of the reference variables.
final String[] sourceNames = info.getAccessedVariableNames();
for (int i = 0; i < sourceNames.length; i++) {
final String sourceName = sourceNames[i];
sourcePriority |= getMapping(sourceName);
}