Skip to content

Handle google.protobuf.Any in custom options source code info. - #29468

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

Handle google.protobuf.Any in custom options source code info.#29468
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_963968051

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 27, 2026

Copy link
Copy Markdown

Handle google.protobuf.Any in custom options source code info.

When options include google.protobuf.Any fields, the TextFormat parser parses the unpacked message directly and records any_type_url_field's name location as the type URL span, while omitting field locations for any_value_field. Previously, OptionInterpreter only iterated over standard set fields, which caused warning logs about missing field locations for type_url and value and failed to record source locations for fields inside Any.

@copybara-service
copybara-service Bot force-pushed the test_963968051 branch 5 times, most recently from 20c584a to 9e4b8b4 Compare August 29, 2026 18:28
When options include `google.protobuf.Any` fields, the TextFormat parser parses the unpacked message directly and records `any_type_url_field`'s name location as the type URL span, while omitting field locations for `any_value_field`. Previously, OptionInterpreter only iterated over standard set fields, which caused warning logs about missing field locations for `type_url` and `value` and failed to record source locations for fields inside `Any`.

PiperOrigin-RevId: 963968051
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