Example #1
0
/*
Set scope to parent's scope.
*/
func (this *Formalizer) PopBindings(sv *value.ScopeValue) {
	parent := sv.Parent()
	if parent == nil {
		this.allowed = nil
	}

	this.allowed = sv.Parent().(*value.ScopeValue)
}
Example #2
0
/*
Set scope as parents scope.
*/
func (this *Formalizer) PopBindings(sv *value.ScopeValue) {
	this.Allowed = sv.Parent()
}