From 3925a7c5dbde952a94fc4c46686d78bb1ff71ed8 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Mon, 18 May 2015 15:50:00 -0400 Subject: all: switch to the new deprecation convention While we're at it, move some misplaced comment blocks around. Change-Id: I1847d7f1ca1dbb8e5de737203c4ed6c66e112508 Reviewed-on: https://go-review.googlesource.com/10188 Reviewed-by: Rob Pike Reviewed-by: Russ Cox --- src/text/template/parse/node.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/text/template/parse/node.go') diff --git a/src/text/template/parse/node.go b/src/text/template/parse/node.go index 728181baae..55ff46c17a 100644 --- a/src/text/template/parse/node.go +++ b/src/text/template/parse/node.go @@ -145,7 +145,7 @@ type PipeNode struct { NodeType Pos tr *Tree - Line int // The line number in the input (deprecated; kept for compatibility) + Line int // The line number in the input. Deprecated: Kept for compatibility. Decl []*VariableNode // Variable declarations in lexical order. Cmds []*CommandNode // The commands in lexical order. } @@ -208,7 +208,7 @@ type ActionNode struct { NodeType Pos tr *Tree - Line int // The line number in the input (deprecated; kept for compatibility) + Line int // The line number in the input. Deprecated: Kept for compatibility. Pipe *PipeNode // The pipeline in the action. } @@ -701,7 +701,7 @@ type elseNode struct { NodeType Pos tr *Tree - Line int // The line number in the input (deprecated; kept for compatibility) + Line int // The line number in the input. Deprecated: Kept for compatibility. } func (t *Tree) newElse(pos Pos, line int) *elseNode { @@ -729,7 +729,7 @@ type BranchNode struct { NodeType Pos tr *Tree - Line int // The line number in the input (deprecated; kept for compatibility) + Line int // The line number in the input. Deprecated: Kept for compatibility. Pipe *PipeNode // The pipeline to be evaluated. List *ListNode // What to execute if the value is non-empty. ElseList *ListNode // What to execute if the value is empty (nil if absent). @@ -814,7 +814,7 @@ type TemplateNode struct { NodeType Pos tr *Tree - Line int // The line number in the input (deprecated; kept for compatibility) + Line int // The line number in the input. Deprecated: Kept for compatibility. Name string // The name of the template (unquoted). Pipe *PipeNode // The command to evaluate as dot for the template. } -- cgit v1.3-5-g9baa