@@ -43,8 +43,8 @@ std::optional<protocol::LocationList> GlassAccess::handleUSR(
4343 std::string& msg) {
4444 // Create USRToDefinitionRequest
4545 ::glean::USRToDefinitionRequest request;
46- request.usr_ref () = usr;
47- request.repo_name_ref () = " fbsource" ;
46+ request.usr () = usr;
47+ request.repo_name () = " fbsource" ;
4848
4949 // Call the Glass service to get symbol definition
5050 const auto result = this ->runGlassMethod <::glean::USRSymbolDefinition>(
@@ -95,22 +95,22 @@ protocol::LocationList GlassAccess::convertUSRSymbolDefinitionToLocations(
9595 protocol::LocationList locations;
9696
9797 // Extract location from USRSymbolDefinition
98- const auto & gleanLocation = definition.location_ref ().value ();
98+ const auto & gleanLocation = definition.location ().value ();
9999
100100 // Convert glean::LocationRange to protocol::Location
101101 // Access the range fields directly
102- const auto & range = gleanLocation.range_ref ().value ();
102+ const auto & range = gleanLocation.range ().value ();
103103
104104 protocol::Position start (
105- static_cast <int >(range.lineBegin_ref ().value ()),
106- static_cast <int >(range.columnBegin_ref ().value ()));
105+ static_cast <int >(range.lineBegin ().value ()),
106+ static_cast <int >(range.columnBegin ().value ()));
107107 protocol::Position end (
108- static_cast <int >(range.lineEnd_ref ().value ()),
109- static_cast <int >(range.columnEnd_ref ().value ()));
108+ static_cast <int >(range.lineEnd ().value ()),
109+ static_cast <int >(range.columnEnd ().value ()));
110110 protocol::Range protocolRange (start, end);
111111
112112 // Create URI from repository and filepath using URI escaping
113- std::string filepath = hgRoot_ + " /" + gleanLocation.filepath_ref ().value ();
113+ std::string filepath = hgRoot_ + " /" + gleanLocation.filepath ().value ();
114114 std::string uri = " file://" + folly::uriEscape<std::string>(filepath);
115115 protocol::Location location (uri, protocolRange);
116116
0 commit comments