Add TODOs for opaque type comments that will need to be changed later

This commit is contained in:
ayazhafiz 2022-02-21 23:21:39 -05:00
parent ca9ecbea52
commit e420ebd023
3 changed files with 3 additions and 0 deletions

View file

@ -105,6 +105,7 @@ impl Scope {
/// Check if there is an opaque type alias referenced by `opaque_ref` referenced in the /// Check if there is an opaque type alias referenced by `opaque_ref` referenced in the
/// current scope. E.g. `$Age` must reference an opaque `Age` declared in this module, not any /// current scope. E.g. `$Age` must reference an opaque `Age` declared in this module, not any
/// other! /// other!
// TODO(opaques): $->@ in the above comment
pub fn lookup_opaque_ref( pub fn lookup_opaque_ref(
&self, &self,
opaque_ref: &str, opaque_ref: &str,

View file

@ -176,6 +176,7 @@ pub enum Expr<'a> {
PrivateTag(&'a str), PrivateTag(&'a str),
// Reference to an opaque type, e.g. $Opaq // Reference to an opaque type, e.g. $Opaq
// TODO(opaques): $->@ in the above comment
OpaqueRef(&'a str), OpaqueRef(&'a str),
// Pattern Matching // Pattern Matching

View file

@ -39,6 +39,7 @@ pub enum Ident<'a> {
/// @Foo or @Bar /// @Foo or @Bar
PrivateTag(&'a str), PrivateTag(&'a str),
/// $Foo or $Bar /// $Foo or $Bar
// TODO(opaques): $->@ in the above comment
OpaqueRef(&'a str), OpaqueRef(&'a str),
/// foo or foo.bar or Foo.Bar.baz.qux /// foo or foo.bar or Foo.Bar.baz.qux
Access { Access {