Lines Matching refs:author
535 match the author ID of the extension.
545 def has_suffix(apiname, author):
546 return apiname[-len(author):] == author
549 for author in authors:
550 if has_suffix(apiname, author):
554 def check_names(elems, author, alt_authors, name_exceptions):
558 author - author ID of the <extension> tag
559 alt_authors - set of other allowed author IDs
564 suffix = apiname[-len(author):]
566 if (not has_suffix(apiname, author) and
570 msg = f'Extension {name} <{elem.tag}> {apiname} does not have expected suffix {author}'
575 self.record_warning('Allowed alternate author ID:', msg)
590 # Extract author ID from the extension name.
591 author = name.split('_')[1]
596 # different author IDs may be suffixed with those IDs.
604 # Extract author ID from extension name
608 check_names(req_elem.findall('./command'), author, alt_authors, name_exceptions)
609 check_names(req_elem.findall('./type'), author, alt_authors, name_exceptions)
610 check_names(req_elem.findall('./enum'), author, alt_authors, name_exceptions)