func()

in var_file_parser.go [56:68]


func (h varFileParserImpl) ParseFile(content []byte, fileName string) (*hcl.File, error) {
	hclParser := hclFileParser{dslAbbreviation: h.dslAbbreviation} //nolint:gosimple,staticcheck
	file, err := hclParser.ParseFile(content, fileName)
	if file != nil || err != nil {
		return file, err
	}
	jsonParser := jsonFileParser{dslAbbreviation: h.dslAbbreviation} //nolint:gosimple,staticcheck
	file, err = jsonParser.ParseFile(content, fileName)
	if file != nil || err != nil {
		return file, err
	}
	return nil, fmt.Errorf("incorrect file %s: %+v", fileName, err)
}