

def execute(self):
    with self.context.new_workunit(name='cpp-library', labels=[WorkUnitLabel.TASK]):
        targets = self.context.targets(targets.is_library)
        with self.invalidated(targets, invalidate_dependents=True) as invalidation_check:
            lib_mapping = self.context.products.get('lib')
            for vt in invalidation_check.all_vts:
                if (not vt.valid):
                    self._create_library(vt.target, vt.results_dir)
                lib_mapping.add(vt.target, vt.results_dir).append(self._libpath(vt.target, vt.results_dir))

dataset/ETHPy150Open pantsbuild/pants/contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_library_create.py CppLibraryCreate.execute/VarMisuse@40/51 `self`->`targets`