|
17 | 17 |
|
18 | 18 | namespace facebook::react { |
19 | 19 |
|
20 | | -template <CSSMaybeCompoundDataType T, CSSDelimiter Delim> |
| 20 | +template <CSSMaybeCompoundDataType T, CSSDelimiter Delimeter> |
21 | 21 | struct CSSList; |
22 | 22 |
|
23 | | -template <CSSDataType AllowedTypeT, CSSDelimiter Delim> |
24 | | -struct CSSList<AllowedTypeT, Delim> : public std::vector<AllowedTypeT> {}; |
| 23 | +template <CSSDataType AllowedTypeT, CSSDelimiter Delimeter> |
| 24 | +struct CSSList<AllowedTypeT, Delimeter> : public std::vector<AllowedTypeT> {}; |
25 | 25 |
|
26 | | -template <CSSValidCompoundDataType AllowedTypesT, CSSDelimiter Delim> |
27 | | -struct CSSList<AllowedTypesT, Delim> : public std::vector<AllowedTypesT> {}; |
| 26 | +template <CSSValidCompoundDataType AllowedTypesT, CSSDelimiter Delimeter> |
| 27 | +struct CSSList<AllowedTypesT, Delimeter> : public std::vector<AllowedTypesT> {}; |
28 | 28 |
|
29 | | -template <CSSMaybeCompoundDataType AllowedTypeT, CSSDelimiter Delim> |
30 | | -struct CSSDataTypeParser<CSSList<AllowedTypeT, Delim>> { |
31 | | - static inline auto consume(CSSValueParser &parser) -> std::optional<CSSList<AllowedTypeT, Delim>> |
| 29 | +template <CSSMaybeCompoundDataType AllowedTypeT, CSSDelimiter Delimeter> |
| 30 | +struct CSSDataTypeParser<CSSList<AllowedTypeT, Delimeter>> { |
| 31 | + static inline auto consume(CSSValueParser &parser) -> std::optional<CSSList<AllowedTypeT, Delimeter>> |
32 | 32 | { |
33 | | - CSSList<AllowedTypeT, Delim> result; |
| 33 | + CSSList<AllowedTypeT, Delimeter> result; |
34 | 34 | for (auto nextValue = parser.parseNextValue<AllowedTypeT>(); !std::holds_alternative<std::monostate>(nextValue); |
35 | | - nextValue = parser.parseNextValue<AllowedTypeT>(Delim)) { |
| 35 | + nextValue = parser.parseNextValue<AllowedTypeT>(Delimeter)) { |
36 | 36 | // Copy from the variant of possible values to the element (either the |
37 | 37 | // concrete type, or a variant of compound types which exlcudes the |
38 | 38 | // possibility of std::monostate for parse error) |
|
0 commit comments