MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / field

Method field

internal/sql/astutils/rewrite.go:100–102  ·  view source on GitHub ↗

field returns the current node's parent field value.

()

Source from the content-addressed store, hash-verified

98
99// field returns the current node's parent field value.
100func (c *Cursor) field() reflect.Value {
101 return reflect.Indirect(reflect.ValueOf(c.parent)).FieldByName(c.name)
102}
103
104// Replace replaces the current Node with n.
105// The replacement node is not walked by Apply.

Callers 1

ReplaceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected