third_party/blink/renderer/bindings/scripts/utilities.py
def should_generate_impl_file_from_idl(file_contents):
    """True when a given IDL file contents could generate .h/.cpp files."""
    # FIXME: This would be error-prone and we should use AST rather than
    # improving the regexp pattern.
    match = re.search(r'(interface|dictionary)\s+\w+', file_contents)
    return bool(match)
True when a given IDL file contents could generate .h/.cpp files.
True when a given IDL file contents could generate .h/.cpp files.
True when a given IDL file contents could generate . h / . cpp files .
def should_generate_impl_file_from_idl(file_contents):
    match = re.search(r'(interface|dictionary)\s+\w+', file_contents)
    return bool(match)
def should_generate_impl_file_from_idl ( file_contents ) : match = re . search ( r'(interface|dictionary)\s+\w+' , file_contents ) return bool ( match )
True when a given IDL file contents could generate .h/.cpp files.
True when a given IDL file contents could generate . h / . cpp files .
"""True when a given IDL file contents could generate .h/.cpp files.""" # FIXME: This would be error-prone and we should use AST rather than # improving the regexp pattern.
file_contents