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

Method global

gapil/bapi/encode.go:966–978  ·  view source on GitHub ↗
(n *semantic.Global)

Source from the content-addressed store, hash-verified

964}
965
966func (e *encoder) global(n *semantic.Global) (outID uint64) {
967 e.build(&e.instances.Global, e.maps.Global, n, &outID, func() *Global {
968 return &Global{
969 Owner: e.node(n.Owner()),
970 Ast: e.astField(n.AST),
971 Annotations: e.annotations(n.Annotations),
972 Type: e.ty(n.Type),
973 Name: e.str(n.Name()),
974 Default: e.expr(n.Default),
975 }
976 })
977 return
978}
979
980func (e *encoder) ignore(n *semantic.Ignore) (outID uint64) {
981 e.build(&e.instances.Ignore, e.maps.Ignore, n, &outID, func() *Ignore {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 9

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

Tested by

no test coverage detected