From e646ff77967c03e487794c848a6496a343e74880 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Mon, 9 Dec 2024 18:41:04 +0900 Subject: [PATCH] add comment --- ast/ast.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ast/ast.go b/ast/ast.go index d99d9ff..1ad8f15 100644 --- a/ast/ast.go +++ b/ast/ast.go @@ -1726,8 +1726,11 @@ func (n *AliasNode) MarshalYAML() ([]byte, error) { // DirectiveNode type of directive node type DirectiveNode struct { *BaseNode - Start *token.Token - Name Node + // Start is '%' token. + Start *token.Token + // Name is directive name e.g.) "YAML" or "TAG". + Name Node + // Values is directive values e.g.) "1.2" or "!!" and "tag:clarkevans.com,2002:app/". Values []Node }