checkExtension method

HTResourceType checkExtension(
  1. String ext
)

Implementation

HTResourceType checkExtension(String ext) {
  if (ext == HTResource.hetuModule) {
    return HTResourceType.hetuModule;
  } else if (ext == HTResource.hetuScript) {
    return HTResourceType.hetuScript;
  } else if (_predefinedCompatibleHetuValueExtensions.contains(ext)) {
    return HTResourceType.hetuValue;
  } else if (binaryFileExtensions.contains(ext)) {
    return HTResourceType.binary;
  } else {
    return HTResourceType.unknown;
  }
}