public string NameFromSolver(DeltinScript deltinScript, ICodeTypeSolver solver) { // null: return void if (solver == null) { return("void"); } // Get the type from the type provider. var type = solver.GetCodeType(deltinScript); // If a type linker is provider, get the real type. if (TypeLinker != null) { type = type.GetRealType(TypeLinker) ?? type; } // Get the type name. If MakeAnonymousTypesUnkown and the type is an anonymous type, set the type name to 'unknown'. return(type.GetName(new(MakeAnonymousTypesUnkown, TypeLinker))); }
public CodeType GetCodeType(DeltinScript deltinScript) => _type.GetCodeType(deltinScript);