| 496 | bool CapturedFunction::IsStateful() const { return !CheckExternalState().ok(); } |
| 497 | |
| 498 | Status CapturedFunction::CheckExternalState() const { |
| 499 | for (const auto& name : lib_def()->ListFunctionNames()) { |
| 500 | TF_RETURN_IF_ERROR( |
| 501 | IsFunctionStateful(*lib_def(), *(lib_def()->Find(name)))); |
| 502 | } |
| 503 | return Status::OK(); |
| 504 | } |
| 505 | |
| 506 | namespace { |
| 507 | class CallFrameBase : public CallFrameInterface { |
nothing calls this directly
no test coverage detected