// ReturningTypeOf marks the scope as returning the return type of the given scope. func (sib *scopeInfoBuilder) ReturningTypeOf(scope *proto.ScopeInfo) *scopeInfoBuilder { returnedValue := scope.GetReturnedType() settlesValue := scope.GetIsSettlingScope() sib.info.ReturnedType = &returnedValue sib.info.IsSettlingScope = &settlesValue return sib }