function createClassicNode(
  t: $FlowFixMe,
  path: Object,
  graphqlDefinition: DefinitionNode,
  state: BabelState,
): Object {
  if (graphqlDefinition.kind === 'FragmentDefinition') {
    return createFragmentConcreteNode(t, path, graphqlDefinition, state);
  }

  if (graphqlDefinition.kind === 'OperationDefinition') {
    return createOperationConcreteNode(t, path, graphqlDefinition, state);
  }

  throw new Error(
    'BabelPluginRelay: Expected a fragment, mutation, query, or ' +
      'subscription, got `' +
      graphqlDefinition.kind +
      '`.',
  );
}
function createClassicNode(
  t: $FlowFixMe,
  path: Object,
  graphqlDefinition: DefinitionNode,
  state: BabelState,
): Object {
  if (graphqlDefinition.kind === 'FragmentDefinition') {
    return createFragmentConcreteNode(t, path, graphqlDefinition, state);
  }

  if (graphqlDefinition.kind === 'OperationDefinition') {
    return createOperationConcreteNode(t, path, graphqlDefinition, state);
  }

  throw new Error(
    'BabelPluginRelay: Expected a fragment, mutation, query, or ' +
      'subscription, got `' +
      graphqlDefinition.kind +
      '`.',
  );
}
function createClassicNode ( t : $FlowFixMe , path : Object , graphqlDefinition : DefinitionNode , state : BabelState , ) : Object { if ( graphqlDefinition . kind === 'FragmentDefinition' ) { return createFragmentConcreteNode ( t , path , graphqlDefinition , state ) ; } if ( graphqlDefinition . kind === 'OperationDefinition' ) { return createOperationConcreteNode ( t , path , graphqlDefinition , state ) ; } throw new Error ( 'BabelPluginRelay: Expected a fragment, mutation, query, or ' + 'subscription, got `' + graphqlDefinition . kind + '`.' , ) ; }
Relay Classic transforms to inline generated content.
Relay Classic transforms to inline generated content .
Creates a classic node