]> gerrit.simantics Code Review - simantics/platform.git/blob
479d5d22ca4be36ee55c30c9b0eb19505d768718
[simantics/platform.git] /
1 package org.simantics.scl.compiler.elaboration.chr.relations;
2
3 import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;
4 import org.simantics.scl.compiler.elaboration.chr.CHRRelation;
5 import org.simantics.scl.compiler.internal.parsing.Symbol;
6 import org.simantics.scl.compiler.types.TVar;
7 import org.simantics.scl.compiler.types.Type;
8
9 public class UnresolvedCHRRelation extends Symbol implements CHRRelation {
10     public String name;
11
12     public UnresolvedCHRRelation(long location, String name) {
13         this.location = location;
14         this.name = name;
15     }
16
17     @Override
18     public Type[] getParameterTypes() {
19         throw new InternalCompilerError("Encountered unresolved CHRRelation during type checking.");
20     }
21
22     @Override
23     public TVar[] getTypeVariables() {
24         throw new InternalCompilerError("Encountered unresolved CHRRelation during type checking.");
25     }
26 }