import org.simantics.scl.compiler.internal.parsing.translation.RelationRepository;
import org.simantics.scl.compiler.internal.parsing.translation.ValueRepository;
import org.simantics.scl.compiler.module.ImportDeclaration;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.map.hash.THashMap;
public class DeclarationClassification {
+ private static final Logger LOGGER = LoggerFactory.getLogger(DeclarationClassification.class);
+
ArrayList<ImportDeclaration> importsAst = new ArrayList<ImportDeclaration>();
ArrayList<DDataAst> dataTypesAst = new ArrayList<DDataAst>();
ArrayList<DTypeAst> typeAliasesAst = new ArrayList<DTypeAst>();
errorLog.log(declaration.location, "Annotations not supported.");
currentAnnotations = new ArrayList<DAnnotationAst>(2);
}
+ if(declaration.name.name.equals("Eq") || declaration.name.name.equals("Hashable")) {
+ LOGGER.warn("Skipped instance definition for " + declaration.name + " for " + declaration.types[0]);
+ return;
+ }
instancesAst.add(new ProcessedDInstanceAst(
declaration,
valueDefs));
errorLog.log(declaration.location, "Annotations not supported.");
currentAnnotations = new ArrayList<DAnnotationAst>(2);
}
+ if(declaration.name.name.equals("Eq") || declaration.name.name.equals("Hashable")) {
+ LOGGER.warn("Skipped instance definition for " + declaration.name + " for " + declaration.types[0]);
+ return;
+ }
derivingInstancesAst.add(declaration);
}
@Test public void SharedTypeVariable() { test(); }
@Test public void ShortcutFusion() { test(); }
@Test public void Show1() { test(); }
+ @Test public void SkipEqAndHashable() { test(); }
@Test public void SinConst1() { test(); }
@Test public void Sort() { test(); }
@Test public void Sort2() { test(); }