Unwrap returns the local activation scope if present, or the parent frame.
()
| 325 | |
| 326 | // Unwrap returns the local activation scope if present, or the parent frame. |
| 327 | func (f *ExecutionFrame) Unwrap() Activation { |
| 328 | if f.scope != nil { |
| 329 | return f.scope |
| 330 | } |
| 331 | if f.parent != nil { |
| 332 | return f.parent |
| 333 | } |
| 334 | return nil |
| 335 | } |
| 336 | |
| 337 | // IsLocalVariable reports whether the variable name is locally bound in the frame. |
| 338 | func (f *ExecutionFrame) IsLocalVariable(name string) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected