(self, errors)
Check if the block has a valid type
Check if the block has a valid type
Check if the block has a valid type
def _validate_type(self, errors):
        """Check if the block has a valid type"""
        if self.param_prop is None:
            return

        for regex in ACCEPTED_VAR_TYPE_REGEX:
            if re.match(regex, self.param_prop.type_name):
                break
        else:
            errors.append(ValidatorError(f"Type {self.param_prop.type_name} is not accepted", self.line))
def _validate_type ( self , errors ) : if self . param_prop is None : return for regex in ACCEPTED_VAR_TYPE_REGEX : if re . match ( regex , self . param_prop . type_name ) : break else : errors . append ( ValidatorError ( f"Type {self.param_prop.type_name} is not accepted" , self . line ) )