Skip to content

Commit

Permalink
Add a bit of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jun 25, 2024
1 parent f600893 commit ac4bc8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/code_info/t_atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,21 @@ impl DictKey {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Eq, Derivative)]
#[derivative(Hash)]
pub enum TAtomic {
/// Corresponds to the arraykey type in Hack
TArraykey {
from_any: bool,
},
/// Corresponds to the Awaitable class, and contains exactly one boxed value
TAwaitable {
value: Box<TUnion>,
},
/// bool type in Hack
TBool,
/// classname<Foo> in Hack, where Foo is non-generic
TClassname {
as_type: Box<self::TAtomic>,
},
/// Corresponds to the `dict` type and also the `shape` type.
TDict {
known_items: Option<BTreeMap<DictKey, (bool, Arc<TUnion>)>>,
params: Option<(Box<TUnion>, Box<TUnion>)>,
Expand Down

0 comments on commit ac4bc8a

Please sign in to comment.