MCPcopy Create free account
hub / github.com/Snapchat/Valdi / parse

Method parse

valdi/src/valdi/runtime/Attributes/TextAttributeValueParser.cpp:281–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281Result<Value> TextAttributeValueParser::parse(const ColorPalette& colorPalette,
282 const Value& value,
283 ILogger& logger,
284 bool strict) {
285 auto parsed = doParse(&colorPalette, value, &logger, strict);
286 if (!parsed) {
287 return parsed.moveError();
288 }
289
290 return Value(parsed.value());
291}
292
293StringBox TextAttributeValueParser::toString(const Value& value) {
294 auto parsed = doParse(nullptr, value, nullptr, false);

Callers 1

preprocessGradientFunction · 0.45

Calls 3

doParseFunction · 0.85
valueMethod · 0.65
ValueClass · 0.50

Tested by

no test coverage detected