Skip to content

Commit 1ea52f1

Browse files
committed
cue/ast: remove outdated docs
There is currently, and probably never has been, a `Comments` list in the top level `ast.File` struct. This is probably a remnant of the original Go implementation, so remove it. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I64763b9b206f619cd083503bd16fe68c92c13342 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205764 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
1 parent 2be40ea commit 1ea52f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: cue/ast/ast.go

-4
Original file line numberDiff line numberDiff line change
@@ -945,10 +945,6 @@ func (d *EmbedDecl) End() token.Pos { return d.Expr.End() }
945945
// Files and packages
946946

947947
// A File node represents a CUE source file.
948-
//
949-
// The Comments list contains all comments in the source file in order of
950-
// appearance, including the comments that are pointed to from other nodes
951-
// via Doc and Comment fields.
952948
type File struct {
953949
Filename string
954950
Decls []Decl // top-level declarations; or nil

0 commit comments

Comments
 (0)