Ignore:
Timestamp:
Nov 13, 2023, 1:40:12 PM (8 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
6ea85b22
Parents:
25f2798
Message:

Removed forward declarations missed in the BaseSyntaxNode? removal. Removed code and modified names to support two versions of the ast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixInitNew.cpp

    r25f2798 r0bd3faf  
    917917                                        // static variables with the same name in different functions.
    918918                                        // Note: it isn't sufficient to modify only the mangleName, because
    919                                         // then subsequent Indexer passes can choke on seeing the object's name
     919                                        // then subsequent SymbolTable passes can choke on seeing the object's name
    920920                                        // if another object has the same name and type. An unfortunate side-effect
    921921                                        // of renaming the object is that subsequent NameExprs may fail to resolve,
     
    11691169                                arg2 = new ast::MemberExpr(funcDecl->location, field, new ast::VariableExpr(funcDecl->location, function->params.back() ) );
    11701170                        }
    1171                         InitExpander_new srcParam( arg2 );
     1171                        InitExpander srcParam( arg2 );
    11721172                        // cast away reference type and construct field.
    11731173                        ast::Expr * thisExpr = new ast::CastExpr(funcDecl->location, new ast::VariableExpr(funcDecl->location, thisParam ), thisParam->get_type()->stripReferences());
Note: See TracChangeset for help on using the changeset viewer.