Push creates a new Scopes value which references the current Scope as its parent.
()
| 52 | |
| 53 | // Push creates a new Scopes value which references the current Scope as its parent. |
| 54 | func (s *Scopes) Push() *Scopes { |
| 55 | return &Scopes{ |
| 56 | parent: s, |
| 57 | scopes: newGroup(), |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // Pop returns the parent Scopes value for the current scope, or the current scope if the parent |
| 62 | // is nil. |
no test coverage detected