Skip to content

Commit

Permalink
cue/ast: remove outdated docs
Browse files Browse the repository at this point in the history
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 <rogpeppe@gmail.com>
Change-Id: I64763b9b206f619cd083503bd16fe68c92c13342
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205764
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
  • Loading branch information
rogpeppe committed Dec 14, 2024
1 parent 2be40ea commit 1ea52f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cue/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,10 +945,6 @@ func (d *EmbedDecl) End() token.Pos { return d.Expr.End() }
// Files and packages

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

0 comments on commit 1ea52f1

Please sign in to comment.