private void resolveAttributes(Declaration declaration) {
assert declaration != null;
for (AstAttribute attribute : declaration.getAttributes()) {
String name = attribute.name.toString();
LOG.debug("Resolving attribute: {} -> {}", declaration.getName(), name); //$NON-NLS-1$
AttributeDriver driver = context.findAttributeDriver(attribute);
if (driver == null) {
report(new Diagnostic(
Level.ERROR,
attribute.name,
Messages.getString("DmdlAnalyzer.diagnosticUnknownAttribute"), //$NON-NLS-1$
name));
continue;
}
LOG.debug("Processing attribute: {} -> {}", name, driver); //$NON-NLS-1$
driver.process(context.getWorld(), declaration, attribute);
}
}