import org.simantics.scl.compiler.errors.ErrorLog;
public class ModuleHeader {
+ public String deprecated;
public String classLoader;
public long classLoaderLocation;
public String defaultLocalName;
// Features
public boolean chr;
public boolean fields;
+ public boolean edo;
private void read(ErrorLog errorLog, FieldAssignment[] fields) {
for(FieldAssignment assignment : fields)
errorLog.log(assignment.value.location, "Expected string here.");
}
break;
+ case "deprecated":
+ if(assignment.value == null)
+ deprecated = "";
+ else {
+ deprecated = AnnotationUtils.extractString(assignment.value);
+ if(deprecated == null)
+ errorLog.log(assignment.value.location, "Expected string here.");
+ }
+ break;
default:
errorLog.logWarning(assignment.location, "Unknown module header field was skipped.");
}
switch(feature.name) {
case "chr": chr = true; break;
case "fields": fields = true; break;
+ case "edo": edo = true; break;
default:
errorLog.log(feature.location, "Unknown feature " + feature.name + ".");
}