Skip to content

Update symbol_canonical_name to return Result. - #2008

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_981263761
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_981263761

Conversation

@copybara-service

Copy link
Copy Markdown

Update symbol_canonical_name to return Result.

Return a result from symbol_canonical_name so that it can report a more
accurate error on why a symbol does not have a canonical name.
Previously, we had logic littered around the codebase to turn None into
an error. We can centralize all that logic by returning the error from
symbol_canonical_name and provide a more descriptive error.

@copybara-service
copybara-service Bot force-pushed the test_981263761 branch 2 times, most recently from 64b89b9 to eab7a13 Compare September 14, 2026 21:27
Return a result from symbol_canonical_name so that it can report a more
accurate error on why a symbol does not have a canonical name.
Previously, we had logic littered around the codebase to turn None into
an error. We can centralize all that logic by returning the error from
symbol_canonical_name and provide a more descriptive error.

PiperOrigin-RevId: 981263761
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant