// toProtocolLocation converts from a source range back to a protocol location.
toProtocolLocation converts from a source range back to a protocol location.
// toProtocolLocation converts from a source range back to a protocol location .
func toProtocolLocation(fset *token.FileSet, r source.Range) protocol.Location {
	tokFile := fset.File(r.Start)
	uri := source.ToURI(tokFile.Name())
	return protocol.Location{
		URI:   protocol.DocumentURI(uri),
		Range: toProtocolRange(tokFile, r),
	}
}
func toProtocolLocation ( fset * token . FileSet , r source . Range ) protocol . Location { tokFile := fset . File ( r . Start ) uri := source . ToURI ( tokFile . Name ( ) ) return protocol . Location { URI : protocol . DocumentURI ( uri ) , Range : toProtocolRange ( tokFile , r ) , } }
toProtocolLocation converts from a source range back to a protocol location.
toProtocolLocation converts from a source range back to a protocol location .