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

Method cast

gapil/bapi/encode.go:637–646  ·  view source on GitHub ↗
(n *semantic.Cast)

Source from the content-addressed store, hash-verified

635}
636
637func (e *encoder) cast(n *semantic.Cast) (outID uint64) {
638 e.build(&e.instances.Cast, e.maps.Cast, n, &outID, func() *Cast {
639 return &Cast{
640 Ast: e.astCall(n.AST),
641 Object: e.expr(n.Object),
642 Type: e.ty(n.Type),
643 }
644 })
645 return
646}
647
648func (e *encoder) choice(n *semantic.Choice) (outID uint64) {
649 e.build(&e.instances.Choice, e.maps.Choice, n, &outID, func() *Choice {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 4

buildMethod · 0.95
astCallMethod · 0.95
exprMethod · 0.95
tyMethod · 0.95

Tested by

no test coverage detected