func ParseLocation(module, sourceLine string) (SourceLocation, error) {
	filename, lineNo, err := parseSourceLine(sourceLine)
	if err != nil {
		return SourceLocation{}, errors.Annotate(err, "failed to parse sourceLine")
	}
	loc := SourceLocation{
		Module:   module,
		Filename: filename,
		Line:     lineNo,
	}
	return loc, nil
}
// ParseLocation converts the given info into a SourceLocation. The
// expected format is "FILENAME" or "FILENAME:LINE". If the first format
// is used then Line is set to -1. If provided, LINE must be a
// non-negative integer.
ParseLocation converts the given info into a SourceLocation. The
expected format is "FILENAME" or "FILENAME:LINE". If the first format
is used then Line is set to -1. If provided, LINE must be a
non-negative integer.
// ParseLocation converts the given info into a SourceLocation . The // expected format is " FILENAME " or " FILENAME : LINE " . If the first format // is used then Line is set to - 1 . If provided LINE must be a // non - negative integer .
func ParseLocation(module, sourceLine string) (SourceLocation, error) {
	filename, lineNo, err := parseSourceLine(sourceLine)
	if err != nil {
		return SourceLocation{}, errors.Annotate(err, "failed to parse sourceLine")
	}
	loc := SourceLocation{
		Module:   module,
		Filename: filename,
		Line:     lineNo,
	}
	return loc, nil
}
func ParseLocation ( module , sourceLine string ) ( SourceLocation , error ) { filename , lineNo , err := parseSourceLine ( sourceLine ) if err != nil { return SourceLocation { } , errors . Annotate ( err , " " ) } loc := SourceLocation { Module : module , Filename : filename , Line : lineNo , } return loc , nil }
ParseLocation converts the given info into a SourceLocation.
ParseLocation converts the given info into a SourceLocation .