Changeset 0bd3faf for src/Tuples


Ignore:
Timestamp:
Nov 13, 2023, 1:40:12 PM (9 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/Tuples/TupleAssignment.cc

    r25f2798 r0bd3faf  
    6565
    6666        /// Dispatcher for tuple (multiple and mass) assignment operations
    67         class TupleAssignSpotter_new final {
     67        class TupleAssignSpotter final {
    6868                /// Actually finds tuple assignment operations, by subclass
    6969                struct Matcher {
    7070                        ResolvExpr::CandidateList lhs, rhs;
    71                         TupleAssignSpotter_new & spotter;
     71                        TupleAssignSpotter & spotter;
    7272                        CodeLocation location;
    7373                        ResolvExpr::Cost baseCost;
     
    8484
    8585                        Matcher(
    86                                 TupleAssignSpotter_new & s, const CodeLocation & loc,
     86                                TupleAssignSpotter & s, const CodeLocation & loc,
    8787                                const ResolvExpr::CandidateList & l, const ResolvExpr::CandidateList & r )
    8888                        : lhs( l ), rhs( r ), spotter( s ), location( loc ),
     
    161161                struct MassAssignMatcher final : public Matcher {
    162162                        MassAssignMatcher(
    163                                 TupleAssignSpotter_new & s, const CodeLocation & loc,
     163                                TupleAssignSpotter & s, const CodeLocation & loc,
    164164                                const ResolvExpr::CandidateList & l, const ResolvExpr::CandidateList & r )
    165165                        : Matcher( s, loc, l, r ) {}
     
    191191                struct MultipleAssignMatcher final : public Matcher {
    192192                        MultipleAssignMatcher(
    193                                 TupleAssignSpotter_new & s, const CodeLocation & loc,
     193                                TupleAssignSpotter & s, const CodeLocation & loc,
    194194                                const ResolvExpr::CandidateList & l, const ResolvExpr::CandidateList & r )
    195195                        : Matcher( s, loc, l, r ) {}
     
    240240
    241241        public:
    242                 TupleAssignSpotter_new( ResolvExpr::CandidateFinder & f )
     242                TupleAssignSpotter( ResolvExpr::CandidateFinder & f )
    243243                : crntFinder( f ), fname(), matcher() {}
    244244
     
    377377        std::vector< ResolvExpr::CandidateFinder > & args
    378378) {
    379         TupleAssignSpotter_new spotter{ finder };
     379        TupleAssignSpotter spotter{ finder };
    380380        spotter.spot( assign, args );
    381381}
Note: See TracChangeset for help on using the changeset viewer.