Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc/ref/spec.md: allow
...
in an ast.File
This is consistent with allowing ... in non-schema. Other benefits: - code generation can generate []Decl regardless of whether it is used for a File or StructLit. - once we have topological sort, `...` could be used to hint insertion points when allowed at an arbitrary position in the Decls list (although [string]: foo could be used for that too). - when adopting JSON Schema semantics, ...T may has meaning at the file level as well. Change-Id: Icfb299f951f5531119d33aeb5d89237eb64e33a1 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5940 Reviewed-by: roger peppe <rogpeppe@gmail.com>
- Loading branch information