Add qname resolution step to the designer

This commit is contained in:
Clément Fournier
2018-02-16 00:06:26 +01:00
parent ccc1443373
commit 4154a5931e
3 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,6 @@ public abstract class AbstractMethodLikeNode extends AbstractJavaAccessNode impl
} }
// TODO refine that type to be more specific when we split JavaQualifiedName into a hierarchy
@Override @Override
public JavaOperationQualifiedName getQualifiedName() { public JavaOperationQualifiedName getQualifiedName() {
return qualifiedName; return qualifiedName;

View File

@ -105,6 +105,12 @@ public class ASTManager {
} catch (Exception e) { } catch (Exception e) {
designerRoot.getLogger().logEvent(new LogEntry(e, Category.SYMBOL_FACADE_EXCEPTION)); designerRoot.getLogger().logEvent(new LogEntry(e, Category.SYMBOL_FACADE_EXCEPTION));
} }
try {
languageVersionHandler.getQualifiedNameResolutionFacade().start(node);
} catch (Exception e) {
designerRoot.getLogger().logEvent(new LogEntry(e, Category.QUALIFIED_NAME_RESOLUTION_EXCEPTION));
}
try { try {
languageVersionHandler.getTypeResolutionFacade(ASTManager.class.getClassLoader()).start(node); languageVersionHandler.getTypeResolutionFacade(ASTManager.class.getClassLoader()).start(node);
} catch (Exception e) { } catch (Exception e) {

View File

@ -52,6 +52,7 @@ public class LogEntry {
public enum Category { public enum Category {
PARSE_EXCEPTION("Parse exception"), PARSE_EXCEPTION("Parse exception"),
TYPERESOLUTION_EXCEPTION("Type resolution exception"), TYPERESOLUTION_EXCEPTION("Type resolution exception"),
QUALIFIED_NAME_RESOLUTION_EXCEPTION("Qualified name resolution exception"),
SYMBOL_FACADE_EXCEPTION("Symbol façade exception"), SYMBOL_FACADE_EXCEPTION("Symbol façade exception"),
XPATH_EVALUATION_EXCEPTION("XPath evaluation exception"), XPATH_EVALUATION_EXCEPTION("XPath evaluation exception"),
OTHER("Other"); OTHER("Other");