1 // Copyright (c) Facebook, Inc. and its affiliates.
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the "hack" directory of this source tree.
5 use crate::decl_defs::{folded, DeclTy};
6 use crate::reason::Reason;
10 pub struct ClassElt<R: Reason> {
16 impl<R: Reason> ClassElt<R> {
17 pub fn new(folded_elt: &folded::FoldedElement, ty: DeclTy<R>) -> Self {
20 origin: folded_elt.origin,
24 pub fn ty(&self) -> &DeclTy<R> {
28 pub fn pos(&self) -> &R::Pos {