Exemplo n.º 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)
}
Exemplo n.º 2
0
/*
Set scope as parents scope.
*/
func (this *Formalizer) PopBindings(sv *value.ScopeValue) {
	this.Allowed = sv.Parent()
}