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

Method addLocal

types/reader.go:36–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34func (r *reader) exprTODO() Expr { return r.buf.ReadAny().(Expr) }
35
36func (r *reader) addLocal() *Alloc {
37 r.sync()
38 typ := r.typ()
39 pos := r.pos()
40
41 b := r.b
42 fn := b.Fn
43 v := &Alloc{}
44 v.setType(NewPointer(typ))
45 v.setPos(pos)
46 fn.Locals = append(fn.Locals, v)
47 b.emit(v)
48 return v
49}
50
51func (r *reader) labelledBlock() *lblock {
52 r.sync()

Callers

nothing calls this directly

Calls 8

syncMethod · 0.95
typMethod · 0.95
posMethod · 0.95
NewPointerFunction · 0.85
setPosMethod · 0.80
setTypeMethod · 0.65
appendFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected