Home | History | Annotate | Download | only in Support

Lines Matching refs:Key

124 bool Input::preflightKey(const char *Key, bool Required, bool, bool &UseDefault,
143 MN->ValidKeys.push_back(Key);
144 HNode *Value = MN->Mapping[Key].get();
147 setError(CurrentNode, Twine("missing required key '") + Key + "'");
170 setError(NN.second.get(), Twine("unknown key '") + NN.first() + "'");
356 setError(KeyNode, "Map key must be a scalar");
379 bool Input::MapHNode::isValidKey(StringRef Key) {
381 if (Key.equals(K))
436 bool Output::preflightKey(const char *Key, bool Required, bool SameAsDefault,
442 flowKey(Key);
445 this->paddedKey(Key);
639 // Normally, with an optional key/value where the value is an empty sequence,
640 // the whole key/value can be not written. But, that produces wrong yaml
641 // if the key/value is the only thing in the map and the map is used in
642 // a sequence. This detects if the this sequence is the first key/value
703 void Output::paddedKey(StringRef key) {
704 output(key);
707 if (key.size() < strlen(spaces))
708 output(&spaces[key.size()]);
713 void Output::flowKey(StringRef Key) {
723 output(Key);