GetRootObject implements the interface objinterface.Collection.
(ctx context.Context, identifier id.Id)
| 208 | |
| 209 | // GetRootObject implements the interface objinterface.Collection. |
| 210 | func (pgf *Collection) GetRootObject(ctx context.Context, identifier id.Id) (objinterface.RootObject, bool, error) { |
| 211 | if identifier.Section() != id.Section_Function { |
| 212 | return nil, false, nil |
| 213 | } |
| 214 | f, err := pgf.GetFunction(ctx, id.Function(identifier)) |
| 215 | return f, err == nil && f.ID.IsValid(), err |
| 216 | } |
| 217 | |
| 218 | // HasRootObject implements the interface objinterface.Collection. |
| 219 | func (pgf *Collection) HasRootObject(ctx context.Context, identifier id.Id) (bool, error) { |
nothing calls this directly
no test coverage detected