Changeset 0bd3faf for src/Tuples
- Timestamp:
- Nov 13, 2023, 1:40:12 PM (14 months ago)
- Branches:
- master
- Children:
- 6ea85b22
- Parents:
- 25f2798
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/TupleAssignment.cc
r25f2798 r0bd3faf 65 65 66 66 /// Dispatcher for tuple (multiple and mass) assignment operations 67 class TupleAssignSpotter _newfinal {67 class TupleAssignSpotter final { 68 68 /// Actually finds tuple assignment operations, by subclass 69 69 struct Matcher { 70 70 ResolvExpr::CandidateList lhs, rhs; 71 TupleAssignSpotter _new& spotter;71 TupleAssignSpotter & spotter; 72 72 CodeLocation location; 73 73 ResolvExpr::Cost baseCost; … … 84 84 85 85 Matcher( 86 TupleAssignSpotter _new& s, const CodeLocation & loc,86 TupleAssignSpotter & s, const CodeLocation & loc, 87 87 const ResolvExpr::CandidateList & l, const ResolvExpr::CandidateList & r ) 88 88 : lhs( l ), rhs( r ), spotter( s ), location( loc ), … … 161 161 struct MassAssignMatcher final : public Matcher { 162 162 MassAssignMatcher( 163 TupleAssignSpotter _new& s, const CodeLocation & loc,163 TupleAssignSpotter & s, const CodeLocation & loc, 164 164 const ResolvExpr::CandidateList & l, const ResolvExpr::CandidateList & r ) 165 165 : Matcher( s, loc, l, r ) {} … … 191 191 struct MultipleAssignMatcher final : public Matcher { 192 192 MultipleAssignMatcher( 193 TupleAssignSpotter _new& s, const CodeLocation & loc,193 TupleAssignSpotter & s, const CodeLocation & loc, 194 194 const ResolvExpr::CandidateList & l, const ResolvExpr::CandidateList & r ) 195 195 : Matcher( s, loc, l, r ) {} … … 240 240 241 241 public: 242 TupleAssignSpotter _new( ResolvExpr::CandidateFinder & f )242 TupleAssignSpotter( ResolvExpr::CandidateFinder & f ) 243 243 : crntFinder( f ), fname(), matcher() {} 244 244 … … 377 377 std::vector< ResolvExpr::CandidateFinder > & args 378 378 ) { 379 TupleAssignSpotter _newspotter{ finder };379 TupleAssignSpotter spotter{ finder }; 380 380 spotter.spot( assign, args ); 381 381 }
Note: See TracChangeset
for help on using the changeset viewer.