def METHOD_NAME(self):
    """Gets size of parameter in bit fields in structs."""
    size = re.search(r'\d+$', self.type)
    if size:
        self.size = size.group(0)
    self.type = self.type[:self.type_text.rfind(':')].strip()