PushInherited creates a new Scopes value which references the current Scope as its inherited parent.
()
| 48 | |
| 49 | // PushInherited creates a new Scopes value which references the current Scope as its inherited parent. |
| 50 | func (s *Scopes) PushInherited() *Scopes { |
| 51 | return &Scopes{ |
| 52 | inherited: s, |
| 53 | scopes: newGroup(), |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // Pop returns the parent Scopes value for the current scope, or the current scope if the parent |
| 58 | // is nil. |