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

Method postprocess

valdi/src/valdi/runtime/Attributes/AttributeHandler.cpp:126–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 } else {
125 auto result = preprocessWithoutCache(value);
126 if (!result) {
127 return result.moveError();
128 }
129 return PreprocessedValue(result.moveValue());
130 }
131}
132
133Result<Value> AttributeHandler::postprocess(ViewNode& viewNode, const Value& value) const {
134 Result<Value> out = value;
135
136 for (const auto& postprocessor : _postprocessors) {
137 out = postprocessor(viewNode, out.value());
138 if (!out) {
139 break;
140 }

Callers 1

Calls 1

valueMethod · 0.65

Tested by

no test coverage detected