text: /**
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *
   * @flow strict
   * @format
   */
  
  'use strict';
  
  import type {EnumDeclaration, Identifier} from 'hermes-estree';
  
  import {DefinitionType} from './DefinitionType';
  import {DefinitionBase} from './DefinitionBase';
  
  class EnumDefinition extends DefinitionBase<
    typeof DefinitionType.Enum,
    EnumDeclaration,
    null,
    Identifier,
  > {
    declare +type: typeof DefinitionType.Enum;
  
    constructor(name: Identifier, node: EnumDefinition['node']) {
      super(DefinitionType.Enum, name, node, null);
    }
  
    +isTypeDefinition: boolean = true;
    +isVariableDefinition: boolean = true;
  }
  
  export {EnumDefinition};
  