def compile(self, errors=None):
        errors = errors or Errors()

        # Prevent duplicate types.
        if self._has_duplicate_types(errors):
            return errors

        # Link.
        for node in self.walk():
            node.link(errors, self)
        if errors:
            return errors

        # Validate.
        for node in self.walk():
            node.validate(errors)

        return errors
Compile this package and return errors.
dataset/ETHPy150Open pdef/pdef/compiler/pdefc/lang.py/Package.compile