@@ -25,8 +25,8 @@ import (
25
25
26
26
var nodeInterface = reflect .TypeOf ((* ast .Node )(nil )).Elem ()
27
27
28
- // VisitorFunc adapts a function to the ast.Visitor interface. This differs
29
- // from ast.VisitorFunc in that is supports an ast.Visitor-compativle return
28
+ // VisitorFunc adapts a function to the [ ast.Visitor] interface. This differs
29
+ // from [ ast.VisitorFunc] in that it supports an ast.Visitor-compatible return
30
30
// value.
31
31
type VisitorFunc func (ast.Walker , ast.Node ) VisitorFunc
32
32
@@ -91,7 +91,7 @@ func Resolve(name string, program *ast.Program, dirs []string) (ast.Node, error)
91
91
return nil , fmt .Errorf ("%q could not be resolved" , name )
92
92
}
93
93
94
- // ResolveConstant resolves an ast.ConstantReference to its target node.
94
+ // ResolveConstant resolves an [ ast.ConstantReference] to its target node.
95
95
//
96
96
// The following name formats are supported:
97
97
// - "Constant" (ast.Constant)
@@ -123,7 +123,7 @@ func ResolveConstant(ref ast.ConstantReference, program *ast.Program, dirs []str
123
123
124
124
// ResolveType calls Resolve and goes one step further by attempting to
125
125
// resolve the target node's own type. This is useful when the reference
126
- // points to an ast.Typedef or ast.Constant, for example, and the caller
126
+ // points to an [ ast.Typedef] or [ ast.Constant] , for example, and the caller
127
127
// is primarily intererested in the target's ast.Type.
128
128
func ResolveType (ref ast.TypeReference , program * ast.Program , dirs []string ) (ast.Node , error ) {
129
129
n , err := Resolve (ref .Name , program , dirs )
0 commit comments