@@ -1163,7 +1163,7 @@ func (v Value) Allows(sel Selector) bool {
1163
1163
// IsConcrete reports whether the current value is a concrete scalar value
1164
1164
// (not relying on default values), a terminal error, a list, or a struct.
1165
1165
// It does not verify that values of lists or structs are concrete themselves.
1166
- // To check whether there is a concrete default, use v .Default().IsConcrete() .
1166
+ // To check whether there is a concrete default, use this method on [Value .Default] .
1167
1167
func (v Value ) IsConcrete () bool {
1168
1168
if v .v == nil {
1169
1169
return false // any is neither concrete, not a list or struct.
@@ -1527,10 +1527,10 @@ func (v Value) Fields(opts ...Option) (*Iterator, error) {
1527
1527
// Lookup reports the value at a path starting from v. The empty path returns v
1528
1528
// itself.
1529
1529
//
1530
- // The Exists() method can be used to verify if the returned value existed.
1530
+ // [Value. Exists] can be used to verify if the returned value existed.
1531
1531
// Lookup cannot be used to look up hidden or optional fields or definitions.
1532
1532
//
1533
- // Deprecated: use LookupPath. At some point before v1.0.0, this method will
1533
+ // Deprecated: use [Value. LookupPath] . At some point before v1.0.0, this method will
1534
1534
// be removed to be reused eventually for looking up a selector.
1535
1535
func (v hiddenValue ) Lookup (path ... string ) Value {
1536
1536
ctx := v .ctx ()
@@ -1787,10 +1787,10 @@ func (v hiddenValue) Template() func(label string) Value {
1787
1787
// Without options, the entire value is considered for assumption, which means
1788
1788
// Subsume tests whether v is a backwards compatible (newer) API version of w.
1789
1789
//
1790
- // Use the Final option to check subsumption if a w is known to be final, and
1790
+ // Use the [ Final] option to check subsumption if a w is known to be final, and
1791
1791
// should assumed to be closed.
1792
1792
//
1793
- // Use the Raw option to do a low-level subsumption, taking defaults into
1793
+ // Use the [ Raw] option to do a low-level subsumption, taking defaults into
1794
1794
// account.
1795
1795
//
1796
1796
// Value v and w must be obtained from the same build. TODO: remove this
@@ -1813,7 +1813,7 @@ func (v Value) Subsume(w Value, opts ...Option) error {
1813
1813
return p .Value (ctx , v .v , w .v )
1814
1814
}
1815
1815
1816
- // Deprecated: use Subsume.
1816
+ // Deprecated: use [Value. Subsume] .
1817
1817
//
1818
1818
// Subsumes reports whether w is an instance of v.
1819
1819
//
@@ -2108,17 +2108,17 @@ func InlineImports(expand bool) Option {
2108
2108
}
2109
2109
2110
2110
// DisallowCycles forces validation in the presence of cycles, even if
2111
- // non-concrete values are allowed. This is implied by Concrete(true) .
2111
+ // non-concrete values are allowed. This is implied by [ Concrete] .
2112
2112
func DisallowCycles (disallow bool ) Option {
2113
2113
return func (p * options ) { p .disallowCycles = disallow }
2114
2114
}
2115
2115
2116
2116
// ResolveReferences forces the evaluation of references when outputting.
2117
2117
//
2118
2118
// Deprecated: Syntax will now always attempt to resolve dangling references and
2119
- // make the output self-contained. When Final or Concrete is used, it will
2120
- // already attempt to resolve all references.
2121
- // See also InlineImports.
2119
+ // make the output self-contained. When [ Final] or [ Concrete] are used,
2120
+ // it will already attempt to resolve all references.
2121
+ // See also [ InlineImports] .
2122
2122
func ResolveReferences (resolve bool ) Option {
2123
2123
return func (p * options ) {
2124
2124
p .resolveReferences = resolve
@@ -2211,7 +2211,7 @@ func (o *options) updateOptions(opts []Option) {
2211
2211
// exists.
2212
2212
//
2213
2213
// Note that by default not all errors are reported, unless options like
2214
- // Concrete are used. The Final option can be used to check for missing
2214
+ // [ Concrete] are used. The [ Final] option can be used to check for missing
2215
2215
// required fields.
2216
2216
func (v Value ) Validate (opts ... Option ) error {
2217
2217
o := options {}
0 commit comments