* @return the qualified code expression, if qualification was performed successfully. Null if qualification failed.
*/
public String qualifyCodeExpression(ModuleName moduleName, String expressionText) {
// Qualify unqualified symbols in code, if unambiguous
CompilerMessageLogger logger = new MessageLogger();
CodeAnalyser analyser = new CodeAnalyser(getProgramModelManager().getTypeChecker(), getProgramModelManager().getModuleTypeInfo(moduleName), false, false);
CodeAnalyser.QualificationResults qualificationResults = analyser.qualifyExpression(expressionText, null, null, logger, true);
if (qualificationResults == null) {
calLogger.severe("Attempt to qualify expression has failed because of errors: ");
for (final CompilerMessage message : logger.getCompilerMessages()) {
calLogger.info(" " + message.toString());