From ac4bc8a49f84eb9888e9bfad298f0c763ec67b74 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Tue, 25 Jun 2024 08:38:39 -0700 Subject: [PATCH] Add a bit of documentation --- src/code_info/t_atomic.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/code_info/t_atomic.rs b/src/code_info/t_atomic.rs index 283c0dea..347fb361 100644 --- a/src/code_info/t_atomic.rs +++ b/src/code_info/t_atomic.rs @@ -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, }, + /// bool type in Hack TBool, + /// classname in Hack, where Foo is non-generic TClassname { as_type: Box, }, + /// Corresponds to the `dict` type and also the `shape` type. TDict { known_items: Option)>>, params: Option<(Box, Box)>,