Skip to content

[api_summary] Track constant variable values #2462

Description

@kevmoo

Currently, api_summary models top-level const variables and constant class fields as static getters, but drops the underlying constant expression/value. Modifying a const value can break consumers when used in compile-time constant contexts (such as annotations or switch cases).

Example

Changing:

const int maxRetries = 3;

to:

const int maxRetries = 4;

currently produces identical api_summary output.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions