chore: slice replace loop (#3410)
This commit is contained in:
@@ -219,9 +219,7 @@ func transferTokenNode(node *TokenNode, opt ...tokenNodeOption) *TokenNode {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !option.ignoreLeadingComment {
|
if !option.ignoreLeadingComment {
|
||||||
for _, v := range node.LeadingCommentGroup {
|
result.LeadingCommentGroup = append(result.LeadingCommentGroup, node.LeadingCommentGroup...)
|
||||||
result.LeadingCommentGroup = append(result.LeadingCommentGroup, v)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user