parameters: (ctxt, field_container, fields, ast_field)
return_statement: return False
docstring: Return True if there is a naming conflict for a given field.
docstring_summary: Return True if there is a naming conflict for a given field.
docstring_tokens: Return True if there is a naming conflict for a given field .
function: def _is_duplicate_field(ctxt, field_container, fields, ast_field):
      # type: (errors.ParserContext, unicode, List[ast.Field], ast.Field) -> bool
      """Return True if there is a naming conflict for a given field."""
  
      # This is normally tested in the parser as part of duplicate detection in a map
      if ast_field.name in [field.name for field in fields]:
          for field in fields:
              if field.name == ast_field.name:
                  duplicate_field = field
  
          ctxt.add_duplicate_field_error(ast_field, field_container, ast_field.name, duplicate_field)
          return True
  
      return False
function_tokens: def _is_duplicate_field ( ctxt , field_container , fields , ast_field ) : # type: (errors.ParserContext, unicode, List[ast.Field], ast.Field) -> bool # This is normally tested in the parser as part of duplicate detection in a map if ast_field . name in [ field . name for field in fields ] : for field in fields : if field . name == ast_field . name : duplicate_field = field ctxt . add_duplicate_field_error ( ast_field , field_container , ast_field . name , duplicate_field ) return True return False