Changeset 8c55d34 for src/AST


Ignore:
Timestamp:
Jul 5, 2024, 10:12:51 AM (13 days ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
c2cf2d0
Parents:
99f7f37
Message:

Fixed spelling mistake. (I'm 99% sure.)

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    r99f7f37 r8c55d34  
    205205bool EnumDecl::isTyped() const { return base; }
    206206
    207 bool EnumDecl::isOpague() const { return isCfa && !isTyped(); }
     207bool EnumDecl::isOpaque() const { return isCfa && !isTyped(); }
     208
    208209}
    209210
  • src/AST/Decl.hpp

    r99f7f37 r8c55d34  
    311311        // enum (type_optional) Name {...}
    312312        bool isCfa;
    313         // if isCfa == true && base.get() == nullptr, it is a "opague" enum
     313        // if isCfa == true && base.get() == nullptr, it is a "opaque" enum
    314314        ptr<Type> base;
    315315        enum class EnumHiding { Visible, Hide } hide;
     
    337337        bool isSubTypeOf(const ast::EnumDecl *) const;
    338338        bool isTyped() const;
    339         bool isOpague() const;
     339        bool isOpaque() const;
    340340private:
    341341        EnumDecl * clone() const override { return new EnumDecl{ *this }; }
Note: See TracChangeset for help on using the changeset viewer.