(name string)
| 1066 | } |
| 1067 | |
| 1068 | func (f *function) SingleVariable(name string) (e exprDesc) { |
| 1069 | var found bool |
| 1070 | if e, found = singleVariableHelper(f, name, true); !found { |
| 1071 | e, found = singleVariableHelper(f, "_ENV", true) |
| 1072 | f.assert(found && (e.kind == kindLocal || e.kind == kindUpValue)) |
| 1073 | e = f.Indexed(e, f.EncodeString(name)) |
| 1074 | } |
| 1075 | return |
| 1076 | } |
| 1077 | |
| 1078 | func (f *function) OpenConstructor() (pc int, t exprDesc) { |
| 1079 | pc = f.EncodeABC(opNewTable, 0, 0, 0) |
no test coverage detected