Skip to content

Commit 204fb7e

Browse files
generatedunixname1030151775592158facebook-github-bot
authored andcommitted
ThriftRemoveRefSuffix_glean_client_swift
Reviewed By: dtolnay Differential Revision: D79491600 fbshipit-source-id: 77e8ada9764ddeb5b9fc7f1345eb0f1584719281
1 parent 3b9729d commit 204fb7e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

glean/client/swift/GlassAccess.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)