File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ class VisitorBase {
25
25
void visit##CLASS##KIND(swift::CLASS##KIND* e) { dispatcher_.emitUnknown (e); }
26
26
27
27
// base class for our AST visitors, getting a SwiftDispatcher member and default emission for
28
- // unknown/TBD entities
28
+ // unknown/TBD entities. Like `swift::ASTVisitor`, this uses CRTP (the Curiously Recurring Template
29
+ // Pattern)
29
30
template <typename CrtpSubclass>
30
31
class AstVisitorBase : public swift ::ASTVisitor<CrtpSubclass>, detail::VisitorBase {
31
32
public:
@@ -48,7 +49,8 @@ class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::VisitorBa
48
49
};
49
50
50
51
// base class for our type visitor, getting a SwiftDispatcher member and default emission for
51
- // unknown/TBD types
52
+ // unknown/TBD types. Like `swift::TypeVisitor`, this uses CRTP (the Curiously Recurring Template
53
+ // Pattern)
52
54
template <typename CrtpSubclass>
53
55
class TypeVisitorBase : public swift ::TypeVisitor<CrtpSubclass>, detail::VisitorBase {
54
56
public:
You can’t perform that action at this time.
0 commit comments