finalizeSet runs the finalizer on all the set expressions that define one.
(set ExpressionSet)
| 241 | |
| 242 | // finalizeSet runs the finalizer on all the set expressions that define one. |
| 243 | func finalizeSet(set ExpressionSet) { |
| 244 | for _, def := range set { |
| 245 | if def == nil { |
| 246 | continue |
| 247 | } |
| 248 | if f, ok := def.(Finalizer); ok { |
| 249 | f.Finalize() |
| 250 | } |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | // caller returns the name of calling function. |
| 255 | func caller() string { |