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.
Currently,
api_summarymodels top-levelconstvariables and constant class fields as static getters, but drops the underlying constant expression/value. Modifying aconstvalue can break consumers when used in compile-time constant contexts (such as annotations orswitchcases).Example
Changing:
to:
currently produces identical
api_summaryoutput.