class ScalarNode
Declaration
class ScalarNode : public Node { /* full declaration omitted */ };
Description
A scalar node is an opaque datum that can be presented as a series of zero or more Unicode scalar values. Example: Adena
Declared at: llvm/include/llvm/Support/YAMLParser.h:211
Inherits from: Node
Member Variables
- private llvm::StringRef Value
Inherited from Node:
Method Overview
- public ScalarNode(std::unique_ptr<Document> & D, llvm::StringRef Anchor, llvm::StringRef Tag, llvm::StringRef Val)
- private void anchor()
- public static bool classof(const llvm::yaml::Node * N)
- public llvm::StringRef getRawValue() const
- public llvm::StringRef getValue(SmallVectorImpl<char> & Storage) const
- private llvm::StringRef unescapeDoubleQuoted(llvm::StringRef UnquotedValue, StringRef::size_type Start, SmallVectorImpl<char> & Storage) const
Inherited from Node:
- public failed
- public getAllocator
- public getAnchor
- public getNext
- public getRawTag
- public getSourceRange
- public getType
- public getVerbatimTag
- public parseBlockNode
- public peekNext
- public setError
- public setSourceRange
- public skip
Methods
¶ScalarNode(std::unique_ptr<Document>& D,
llvm::StringRef Anchor,
llvm::StringRef Tag,
llvm::StringRef Val)
ScalarNode(std::unique_ptr<Document>& D,
llvm::StringRef Anchor,
llvm::StringRef Tag,
llvm::StringRef Val)
Declared at: llvm/include/llvm/Support/YAMLParser.h:215
Parameters
- std::unique_ptr<Document>& D
- llvm::StringRef Anchor
- llvm::StringRef Tag
- llvm::StringRef Val
¶void anchor()
void anchor()
Declared at: llvm/include/llvm/Support/YAMLParser.h:212
¶static bool classof(const llvm::yaml::Node* N)
static bool classof(const llvm::yaml::Node* N)
Declared at: llvm/include/llvm/Support/YAMLParser.h:235
Parameters
- const llvm::yaml::Node* N
¶llvm::StringRef getRawValue() const
llvm::StringRef getRawValue() const
Declared at: llvm/include/llvm/Support/YAMLParser.h:226
¶llvm::StringRef getValue(
SmallVectorImpl<char>& Storage) const
llvm::StringRef getValue(
SmallVectorImpl<char>& Storage) const
Description
Gets the value of this node as a StringRef.
Declared at: llvm/include/llvm/Support/YAMLParser.h:233
Parameters
- SmallVectorImpl<char>& Storage
- is used to store the content of the returned StringRef if it requires any modification from how it appeared in the source. This happens with escaped characters and multi-line literals.
¶llvm::StringRef unescapeDoubleQuoted(
llvm::StringRef UnquotedValue,
StringRef::size_type Start,
SmallVectorImpl<char>& Storage) const
llvm::StringRef unescapeDoubleQuoted(
llvm::StringRef UnquotedValue,
StringRef::size_type Start,
SmallVectorImpl<char>& Storage) const
Declared at: llvm/include/llvm/Support/YAMLParser.h:242
Parameters
- llvm::StringRef UnquotedValue
- StringRef::size_type Start
- SmallVectorImpl<char>& Storage