Module Object.Property

type key('M, 'T) =
  1. | Literal(('T, Literal.t('M)))
  2. | Identifier(Identifier.t('M, 'T))
  3. | PrivateName(PrivateName.t('M))
  4. | Computed(ComputedKey.t('M, 'T))
;
and t('M, 'T) = ('M, t'('M, 'T));
and t'('M, 'T) =
  1. | Init of {
    1. key: key('M, 'T),
    2. value: Expression.t('M, 'T),
    3. shorthand: bool,
    }
  2. | Method of {
    1. key: key('M, 'T),
    2. value: ('M, Function.t('M, 'T)),
    }
  3. | Get of {
    1. key: key('M, 'T),
    2. value: ('M, Function.t('M, 'T)),
    3. comments: option(Syntax.t('M, unit)),
    }
  4. | Set of {
    1. key: key('M, 'T),
    2. value: ('M, Function.t('M, 'T)),
    3. comments: option(Syntax.t('M, unit)),
    }
;