Changeset fa761c2 for src/ResolvExpr


Ignore:
Timestamp:
Nov 1, 2023, 10:40:54 AM (8 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
be3f163
Parents:
6e7ed0aa
Message:

Changed some new uses of UniqueId? to the ast version. Changed where some debugging variables are stored.

Location:
src/ResolvExpr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r6e7ed0aa rfa761c2  
    5757
    5858/// Unique identifier for matching expression resolutions to their requesting expression
    59 UniqueId globalResnSlot = 0;
     59ast::UniqueId globalResnSlot = 0;
    6060
    6161namespace {
     
    686686        void Finder::inferParameters( CandidateRef & newCand, CandidateList & out ) {
    687687                // Set need bindings for any unbound assertions
    688                 UniqueId crntResnSlot = 0; // matching ID for this expression's assertions
     688                ast::UniqueId crntResnSlot = 0; // matching ID for this expression's assertions
    689689                for ( auto & assn : newCand->need ) {
    690690                        // skip already-matched assertions
  • src/ResolvExpr/SatisfyAssertions.cpp

    r6e7ed0aa rfa761c2  
    5151
    5252// in CandidateFinder.cpp; unique ID for assertion satisfaction
    53 extern UniqueId globalResnSlot;
     53extern ast::UniqueId globalResnSlot;
    5454
    5555namespace {
     
    298298                        if ( !expr->inferred.hasSlots() ) return expr;
    299299                        // if ( expr->inferred.mode != ast::Expr::InferUnion::Slots ) return expr;
    300                         std::vector<UniqueId> missingSlots;
     300                        std::vector<ast::UniqueId> missingSlots;
    301301                        // find inferred parameters for resolution slots
    302302                        ast::InferredParams * newInferred = new ast::InferredParams();
    303                         for ( UniqueId slot : expr->inferred.resnSlots() ) {
     303                        for ( ast::UniqueId slot : expr->inferred.resnSlots() ) {
    304304                                // fail if no matching assertions found
    305305                                auto it = inferred.find( slot );
Note: See TracChangeset for help on using the changeset viewer.