parseManifestSnapshot function
Decodes manifest content using path to select the lock or Dart format.
Implementation
ManifestSnapshot parseManifestSnapshot(String content, {required String path}) {
if (path.endsWith('.yaml') || path.endsWith('.yml')) {
return _decodeLockManifest(content, path);
}
return _decodeDartManifest(content, path);
}