packages/babel-plugin-transform-class-display-name/lib/index.js
function insertDisplayName(path, id) {
    const assignment = t.assignmentExpression(
      '=',
      t.memberExpression(
        t.identifier(id),
        t.identifier('displayName')
      ),
      t.stringLiteral(id)
    )
    // Put in the assignment expression and a semicolon
    path.insertAfter([assignment, t.emptyStatement()])
  }
function insertDisplayName(path, id) {
    const assignment = t.assignmentExpression(
      '=',
      t.memberExpression(
        t.identifier(id),
        t.identifier('displayName')
      ),
      t.stringLiteral(id)
    )
    // Put in the assignment expression and a semicolon
    path.insertAfter([assignment, t.emptyStatement()])
  }
function insertDisplayName ( path , id ) { const assignment = t . assignmentExpression ( '=' , t . memberExpression ( t . identifier ( id ) , t . identifier ( 'displayName' ) ) , t . stringLiteral ( id ) ) // Put in the assignment expression and a semicolon path . insertAfter ( [ assignment , t . emptyStatement ( ) ] ) }
Insert a static displayName for the identifier
Insert a static displayName for the identifier