public static ITypeDefinition GetDefinitionOrArrayType(this IType ce) { var def = ce.GetDefinition(); if (def == null) { if (ce.Kind == TypeKind.Array) { return(Cs.ArrayType(((ArrayType)ce).Compilation)); } } return(def); }
public static ITypeDefinition GetDefinitionOrArrayType(this IType ce, CompilerTool compiler) { var def = ce.GetDefinition(); if (def == null) { if (ce.Kind == TypeKind.Array) { return(Cs.ArrayType(compiler.Project)); } } return(def); }