Changeset 8c55d34 for src


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

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

Location:
src
Files:
3 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 }; }
  • src/Parser/TypeData.cpp

    r99f7f37 r8c55d34  
    14711471                ast::ObjectDecl * object = strict_dynamic_cast<ast::ObjectDecl *>( member );
    14721472                object->isHidden = ast::EnumDecl::EnumHiding::Hide == ret->hide;
    1473                 if ( ret->isOpague() && cur->has_enumeratorValue() ) {
     1473                if ( ret->isOpaque() && cur->has_enumeratorValue() ) {
    14741474                        SemanticError( td->location, "Opague cannot have an explicit initializer value." );
    14751475                } else if ( cur->has_enumeratorValue() ) {
     
    14791479                                ast::NoConstruct
    14801480                        );
    1481                 } 
     1481                }
    14821482                // else cur is a List Initializer and has been set as init in buildList()
    14831483                // if
Note: See TracChangeset for help on using the changeset viewer.