"vscode:/vscode.git/clone" did not exist on "c2fbf8da026f239a0c609e5325e927ba380963f4"
Commit e58f0f31 authored by jbeder's avatar jbeder
Browse files

Set alias nodes to return the tag of their anchor

parent 8080400c
...@@ -77,7 +77,7 @@ namespace YAML ...@@ -77,7 +77,7 @@ namespace YAML
bool IsReferenced() const { return m_referenced; } bool IsReferenced() const { return m_referenced; }
// for tags // for tags
const std::string GetTag() const { return m_tag; } // TODO: should an aliased node return its alias's tag? const std::string GetTag() const { return IsAlias() ? m_pIdentity->GetTag() : m_tag; }
// emitting // emitting
friend Emitter& operator << (Emitter& out, const Node& node); friend Emitter& operator << (Emitter& out, const Node& node);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment