// A helper function checking whether a component instance is executable.
A helper function checking whether a component instance is executable.
A helper function checking whether a component instance is executable .
async fn check_executable(
        &self,
        component: &Arc<ComponentInstanceForAnalyzer>,
    ) -> Result<(), AnalyzerModelError> {
        match component.decl.program {
            Some(_) => Ok(()),
            None => Err(AnalyzerModelError::SourceInstanceNotExecutable(
                component.abs_moniker().to_string(),
            )),
        }
    }
async fn check_executable ( & self , component : & Arc < ComponentInstanceForAnalyzer > , ) -> Result < ( ) , AnalyzerModelError > { match component . decl . program { Some ( _ ) => Ok ( ( ) ) , None => Err ( AnalyzerModelError :: SourceInstanceNotExecutable ( component . abs_moniker ( ) . to_string ( ) , ) ) , } }
A helper function checking whether a component instance is executable.
A helper function checking whether a component instance is executable .
&self
component
&Arc<ComponentInstanceForAnalyzer>