@@ -2341,11 +2341,11 @@ func ComputePositionOfLineAndCharacter(lineStarts []core.TextPos, line int, char
2341
2341
return res
2342
2342
}
2343
2343
2344
- func GetLeadingCommentRanges (f ast.NodeFactoryCoercible , text string , pos int ) iter.Seq [ast.CommentRange ] {
2344
+ func GetLeadingCommentRanges (f * ast.NodeFactory , text string , pos int ) iter.Seq [ast.CommentRange ] {
2345
2345
return iterateCommentRanges (f , text , pos , false )
2346
2346
}
2347
2347
2348
- func GetTrailingCommentRanges (f ast.NodeFactoryCoercible , text string , pos int ) iter.Seq [ast.CommentRange ] {
2348
+ func GetTrailingCommentRanges (f * ast.NodeFactory , text string , pos int ) iter.Seq [ast.CommentRange ] {
2349
2349
return iterateCommentRanges (f , text , pos , true )
2350
2350
}
2351
2351
@@ -2355,8 +2355,7 @@ Single-line comment ranges include the leading double-slash characters but not t
2355
2355
line break. Multi-line comment ranges include the leading slash-asterisk and trailing
2356
2356
asterisk-slash characters.
2357
2357
*/
2358
- func iterateCommentRanges (fc ast.NodeFactoryCoercible , text string , pos int , trailing bool ) iter.Seq [ast.CommentRange ] {
2359
- f := fc .AsNodeFactory ()
2358
+ func iterateCommentRanges (f * ast.NodeFactory , text string , pos int , trailing bool ) iter.Seq [ast.CommentRange ] {
2360
2359
return func (yield func (ast.CommentRange ) bool ) {
2361
2360
var pendingPos int
2362
2361
var pendingEnd int
0 commit comments