Skip to content

Commit 9b33bda

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Simplify CSSDataTypeParser::consumeFunctionBlock gradient parsing (#57158)
Summary: `CSSDataTypeParser<CSSRadialGradientFunction>::consumeFunctionBlock` (CCN 100) and `parseLinearGradientDirection` (CCN 24) parse CSS gradient syntax through deeply nested conditionals. This is a pure, behavior-preserving refactor: the recurring parsing steps (direction/position keyword resolution, shape-and-size, position-value lists) are extracted into focused helpers in `namespace facebook::react::detail`, matching the existing convention in this file, turning the two entry points into flat sequences. Parsing results are unchanged. Changelog: [Internal] Differential Revision: D108027809
1 parent c871348 commit 9b33bda

1 file changed

Lines changed: 468 additions & 346 deletions

File tree

0 commit comments

Comments
 (0)