Skip to content

Handle empty types in FormatTypeName and reject invalid types in declarations - #155

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Handle empty types in FormatTypeName and reject invalid types in declarations

Updates FormatTypeName to format empty OpaqueType and StructType
(MessageType and BasicStructType) values as *error* (matching
FunctionType) instead of dereferencing them. Updates
ValidateTypeForDeclaration to reject empty OpaqueType, EnumType, and
StructType values (in addition to empty MessageType) and to reject all
FunctionType values in type declarations.

…arations

Updates `FormatTypeName` to format empty `OpaqueType` and `StructType`
(`MessageType` and `BasicStructType`) values as `*error*` (matching
`FunctionType`) instead of dereferencing them. Updates
`ValidateTypeForDeclaration` to reject empty `OpaqueType`, `EnumType`, and
`StructType` values (in addition to empty `MessageType`) and to reject all
`FunctionType` values in type declarations.

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