parameters: (f)
docstring: Check if this PROTO file should have an icon.
  
      Hidden and deprecated PROTO nodes doesn't need an icon.
docstring_summary: Check if this PROTO file should have an icon.
docstring_tokens: Check if this PROTO file should have an icon .
function: def proto_should_have_icon(f):
      """Check if this PROTO file should have an icon.
  
      Hidden and deprecated PROTO nodes doesn't need an icon.
      """
      file = open(f, 'r')
      row = file.readlines()
      for line in row:
          if re.match(r'^#[^\n]*tags[^\n]*:[^\n]*hidden', line) or re.match(r'^#[^\n]*tags[^\n]*:[^\n]*deprecated', line):
              return False
          if not line.startswith('#'):
              return True
function_tokens: def proto_should_have_icon ( f ) : file = open ( f , 'r' ) row = file . readlines ( ) for line in row : if re . match ( r'^#[^\n]*tags[^\n]*:[^\n]*hidden' , line ) or re . match ( r'^#[^\n]*tags[^\n]*:[^\n]*deprecated' , line ) : return False if not line . startswith ( '#' ) : return True