]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/chr/relations/UnresolvedCHRRelation.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / chr / relations / UnresolvedCHRRelation.java
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 }