MCPcopy Index your code
hub / github.com/google/go-github / addSimpleValueSelectorExpr

Method addSimpleValueSelectorExpr

github/gen-accessors.go:399–407  ·  view source on GitHub ↗
(x *ast.SelectorExpr, receiverType, fieldName string)

Source from the content-addressed store, hash-verified

397}
398
399func (t *templateData) addSimpleValueSelectorExpr(x *ast.SelectorExpr, receiverType, fieldName string) {
400 getter := t.genSelectorExprGetter(x, receiverType, fieldName)
401 if getter == nil {
402 return
403 }
404 getter.IsSimpleValue = true
405 logf("addSimpleValueSelectorExpr: Processing field name %q - %#v - zero value is %q", fieldName, x, getter.ZeroValue)
406 t.Getters = append(t.Getters, getter)
407}
408
409func (t *templateData) addSelectorExpr(x *ast.SelectorExpr, receiverType, fieldName string) {
410 getter := t.genSelectorExprGetter(x, receiverType, fieldName)

Callers 1

processASTMethod · 0.95

Calls 2

genSelectorExprGetterMethod · 0.95
logfFunction · 0.70

Tested by

no test coverage detected