third_party/blink/renderer/bindings/scripts/utilities.py
def is_non_legacy_callback_interface_from_idl(file_contents):
    """Returns True if the specified IDL is a non-legacy callback interface."""
    match = re.search(r'callback\s+interface\s+\w+\s*{', file_contents)
    # Having constants means it's a legacy callback interface.
    # https://webidl.spec.whatwg.org/#legacy-callback-interface-object
    return bool(match) and not re.search(r'\s+const\b', file_contents)
Returns True if the specified IDL is a non-legacy callback interface.
Returns True if the specified IDL is a non-legacy callback interface.
Returns True if the specified IDL is a non - legacy callback interface .
def is_non_legacy_callback_interface_from_idl(file_contents):
    match = re.search(r'callback\s+interface\s+\w+\s*{', file_contents)
    return bool(match) and not re.search(r'\s+const\b', file_contents)
def is_non_legacy_callback_interface_from_idl ( file_contents ) : match = re . search ( r'callback\s+interface\s+\w+\s*{' , file_contents ) return bool ( match ) and not re . search ( r'\s+const\b' , file_contents )
Returns True if the specified IDL is a non-legacy callback interface.
Returns True if the specified IDL is a non - legacy callback interface .
"""Returns True if the specified IDL is a non-legacy callback interface.""" # Having constants means it's a legacy callback interface. # https://webidl.spec.whatwg.org/#legacy-callback-interface-object
file_contents