void convertObjectLiteral(Node classMembers,Node objectLiteralMember,boolean isStatic){
  Preconditions.checkState(objectLiteralMember.isStringKey() || objectLiteralMember.isMemberFunctionDef());
  Node value=objectLiteralMember.getFirstChild();
  value.detachFromParent();
  if (value.isFunction()) {
    Node n=IR.memberFunctionDef(objectLiteralMember.getString(),value);
    n.setJSDocInfo(objectLiteralMember.getJSDocInfo());
    n.setStaticMember(isStatic);
    classMembers.addChildToBack(n);
    nodeComments.moveComment(objectLiteralMember,n);
  }
 else {
    Node n=Node.newString(Token.MEMBER_VARIABLE_DEF,objectLiteralMember.getString());
    n.addChildToBack(value);
    n.setJSDocInfo(objectLiteralMember.getJSDocInfo());
    n.setStaticMember(isStatic);
    addFieldToClassMembers(classMembers,n);
    nodeComments.moveComment(objectLiteralMember,n);
  }
}

void convertObjectLiteral ( Node classMembers , Node objectLiteralMember , boolean isStatic ) { Preconditions . checkState ( objectLiteralMember . isStringKey ( ) || objectLiteralMember . isMemberFunctionDef ( ) ) ; Node value = objectLiteralMember . getFirstChild ( ) ; value . detachFromParent ( ) ; if ( value . isFunction ( ) ) { Node n = IR . memberFunctionDef ( objectLiteralMember . getString ( ) , value ) ; n . setJSDocInfo ( objectLiteralMember . getJSDocInfo ( ) ) ; n . setStaticMember ( isStatic ) ; classMembers . addChildToBack ( n ) ; nodeComments . moveComment ( objectLiteralMember , n ) ; } else { Node n = Node . newString ( Token . MEMBER_VARIABLE_DEF , objectLiteralMember . getString ( ) ) ; n . addChildToBack ( value ) ; n . setJSDocInfo ( objectLiteralMember . getJSDocInfo ( ) ) ; n . setStaticMember ( isStatic ) ; addFieldToClassMembers ( classMembers , n ) ; nodeComments . moveComment ( objectLiteralMember , n ) ; } }
converts functions and variables declared in object literals into member method and field definitions
