Ignore:
Timestamp:
Nov 21, 2023, 11:34:47 AM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
4883712
Parents:
0da9475
Message:

Did some investigation of WithStmt?. It may not be possible to convert it to a Stmt without changing how SymbolTable? handles the with clauses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/SymbolTable.hpp

    r0da9475 r6a0b043  
    4848                : id( i ), baseExpr( base ), deleter( del ), scope( s ) {}
    4949
    50                 /// Modify an existing node with a new deleter
    51                 IdData( const IdData & o, const Decl * del )
    52                 : id( o.id ), baseExpr( o.baseExpr ), deleter( del ), scope( o.scope ) {}
     50                /// Create a new IdData, updating the deleter value.
     51                IdData withDeleter( const Decl * decl ) const {
     52                        return IdData( id, baseExpr, decl, scope );
     53                }
    5354
    5455                /// Constructs an expression referring to this identifier.
Note: See TracChangeset for help on using the changeset viewer.