Changeset eae8b37 for src


Ignore:
Timestamp:
Dec 4, 2024, 10:17:49 PM (2 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
fc276f3
Parents:
509ec82
Message:

Move enum.hfa/enum.cfa to prelude

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    r509ec82 reae8b37  
    123123bool VariableExpr::get_lvalue() const {
    124124        // It isn't always an lvalue, but it is never an rvalue.
     125        if(dynamic_cast<const ast::EnumInstType *>(var->get_type())) return !var->isMember;
    125126        return true;
    126127}
  • src/Parser/TypeData.cpp

    r509ec82 reae8b37  
    14811481                ast::ObjectDecl * object = strict_dynamic_cast<ast::ObjectDecl *>( member );
    14821482                object->isHidden = ast::EnumDecl::EnumHiding::Hide == ret->hide;
     1483                object->isMember = true;
    14831484                if ( ret->isOpaque() && cur->has_enumeratorValue() ) {
    14841485                        SemanticError( td->location, "Opague cannot have an explicit initializer value." );
Note: See TracChangeset for help on using the changeset viewer.