MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / expr

Method expr

types/builder.go:793–800  ·  view source on GitHub ↗

expr lowers a single-result expression e to SSA form, emitting code to fn and returning the Value defined by the expression.

(e Expr)

Source from the content-addressed store, hash-verified

791// to fn and returning the Value defined by the expression.
792//
793func (b *builder) expr(e Expr) (res Value) {
794 b.split(func(w *writer) {
795 w.expr(e)
796 }, func(r *reader) {
797 res = r.expr()
798 })
799 return
800}
801
802func (w *writer) expr(e Expr) {
803 e = Unparen(e)

Callers 6

arrayLenMethod · 0.95
switchStmtMethod · 0.95
typeSwitchStmtMethod · 0.95
selectStmtMethod · 0.95
rangeStmtMethod · 0.95
stmtMethod · 0.95

Calls 2

splitMethod · 0.95
exprMethod · 0.45

Tested by

no test coverage detected