class KeyValueNode

Declaration

class KeyValueNode : public Node { /* full declaration omitted */ };

Description

A key and value pair. While not technically a Node under the YAML representation graph, it is easier to treat them this way. TODO: Consider making this not a child of Node. Example: Section: .text

Declared at: llvm/include/llvm/Support/YAMLParser.h:284

Inherits from: Node

Member Variables

private llvm::yaml::Node* Key = nullptr
private llvm::yaml::Node* Value = nullptr

Inherited from Node:

protected Doc
protected SourceRange

Method Overview

Inherited from Node:

Methods

KeyValueNode(std::unique_ptr<Document>& D)

Declared at: llvm/include/llvm/Support/YAMLParser.h:288

Parameters

std::unique_ptr<Document>& D

void anchor()

Declared at: llvm/include/llvm/Support/YAMLParser.h:285

static bool classof(const llvm::yaml::Node* N)

Declared at: llvm/include/llvm/Support/YAMLParser.h:313

Parameters

const llvm::yaml::Node* N

llvm::yaml::Node* getKey()

Description

Parse and return the key. This may be called multiple times.

Declared at: llvm/include/llvm/Support/YAMLParser.h:296

Returns

The key, or nullptr if failed() == true.

llvm::yaml::Node* getValue()

Description

Parse and return the value. This may be called multiple times.

Declared at: llvm/include/llvm/Support/YAMLParser.h:303

Returns

The value, or nullptr if failed() == true.

void skip()

Declared at: llvm/include/llvm/Support/YAMLParser.h:305