MCPcopy Create free account
hub / github.com/google/gapid / field

Method field

gapil/bapi/encode.go:900–913  ·  view source on GitHub ↗
(n *semantic.Field)

Source from the content-addressed store, hash-verified

898}
899
900func (e *encoder) field(n *semantic.Field) (outID uint64) {
901 e.build(&e.instances.Field, e.maps.Field, n, &outID, func() *Field {
902 p := &Field{}
903 p.Owner = e.node(n.Owner())
904 p.Ast = e.astField(n.AST)
905 p.Annotations = e.annotations(n.Annotations)
906 p.Type = e.ty(n.Type)
907 p.Name = e.str(n.Name())
908 p.Docs = e.docs(n.Docs)
909 p.Default = e.expr(n.Default)
910 return p
911 })
912 return
913}
914
915func (e *encoder) fieldInit(n *semantic.FieldInitializer) (outID uint64) {
916 e.build(&e.instances.FieldInit, e.maps.FieldInit, n, &outID, func() *FieldInitializer {

Callers 4

nodeMethod · 0.95
exprMethod · 0.95
fieldInitMethod · 0.95
memberMethod · 0.95

Calls 10

buildMethod · 0.95
nodeMethod · 0.95
astFieldMethod · 0.95
annotationsMethod · 0.95
tyMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
exprMethod · 0.95
OwnerMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected