func FreeMessageRangeStrings(
	ctx context.Context,
	filePaths []string,
	image bufimage.Image,
) ([]string, error) {
	var s []string
	for _, filePath := range filePaths {
		imageFile := image.GetFile(filePath)
		if imageFile == nil {
			return nil, fmt.Errorf("unexpected nil image file: %q", filePath)
		}
		file, err := protosource.NewFile(newInputFile(imageFile))
		if err != nil {
			return nil, err
		}
		for _, message := range file.Messages() {
			s = freeMessageRangeStringsRec(s, message)
		}
	}
	return s, nil
}
// FreeMessageRangeStrings gets the free MessageRange strings for the target files.
//
// Recursive.
FreeMessageRangeStrings gets the free MessageRange strings for the target files.

Recursive.
// FreeMessageRangeStrings gets the free MessageRange strings for the target files . // // Recursive .
func FreeMessageRangeStrings(
	ctx context.Context,
	filePaths []string,
	image bufimage.Image,
) ([]string, error) {
	var s []string
	for _, filePath := range filePaths {
		imageFile := image.GetFile(filePath)
		if imageFile == nil {
			return nil, fmt.Errorf("unexpected nil image file: %q", filePath)
		}
		file, err := protosource.NewFile(newInputFile(imageFile))
		if err != nil {
			return nil, err
		}
		for _, message := range file.Messages() {
			s = freeMessageRangeStringsRec(s, message)
		}
	}
	return s, nil
}
func FreeMessageRangeStrings ( ctx context . Context , filePaths [ ] string , image bufimage . Image , ) ( [ ] string , error ) { var s [ ] string for _ , filePath := range filePaths { imageFile := image . GetFile ( filePath ) if imageFile == nil { return nil , fmt . Errorf ( " " , filePath ) } file , err := protosource . NewFile ( newInputFile ( imageFile ) ) if err != nil { return nil , err } for _ , message := range file . Messages ( ) { s = freeMessageRangeStringsRec ( s , message ) } } return s , nil }
FreeMessageRangeStrings gets the free MessageRange strings for the target files.
FreeMessageRangeStrings gets the free MessageRange strings for the target files .