Push creates a new Scopes value which references the current Scope as its parent.
()
| 40 | |
| 41 | // Push creates a new Scopes value which references the current Scope as its parent. |
| 42 | func (s *Scopes) Push() *Scopes { |
| 43 | return &Scopes{ |
| 44 | parent: s, |
| 45 | scopes: newGroup(), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // PushInherited creates a new Scopes value which references the current Scope as its inherited parent. |
| 50 | func (s *Scopes) PushInherited() *Scopes { |
no test coverage detected