1 package polyglot.ext.jl.types; 2 3 import polyglot.types.*; 4 import polyglot.util.*; 5 import polyglot.types.Package; 6 import java.io.*; 7 8 12 public class UnknownType_c extends Type_c implements UnknownType 13 { 14 15 protected UnknownType_c() { } 16 17 18 public UnknownType_c(TypeSystem ts) { 19 super(ts); 20 } 21 22 public boolean isCanonical() { 23 return false; 24 } 25 26 public String translate(Resolver c) { 27 throw new InternalCompilerError("Cannot translate an unknown type."); 28 } 29 30 public String toString() { 31 return "<unknown>"; 32 } 33 } 34 | Popular Tags |