Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocationTools.cpp

    rc86b08d r561354f  
    105105    macro(UnionDecl, Decl) \
    106106    macro(EnumDecl, Decl) \
     107        macro(AdtDecl, Decl) \
    107108    macro(TraitDecl, Decl) \
    108109    macro(TypeDecl, Decl) \
     
    128129    macro(FinallyClause, FinallyClause) \
    129130    macro(SuspendStmt, Stmt) \
    130     macro(WhenClause, WhenClause) \
    131131    macro(WaitForStmt, Stmt) \
    132132    macro(WaitForClause, WaitForClause) \
    133     macro(WaitUntilStmt, Stmt) \
    134133    macro(WithStmt, Decl) \
    135134    macro(NullStmt, NullStmt) \
     
    210209
    211210struct LeafKindVisitor : public ast::Visitor {
    212         LeafKind kind;
     211        LeafKind result;
    213212
    214213#define VISIT(node_type, return_type) \
    215214        const ast::return_type * visit( const ast::node_type * ) final { \
    216                 kind = LeafKind::node_type; \
     215                result = LeafKind::node_type; \
    217216                return nullptr; \
    218217        }
     
    224223
    225224LeafKind get_leaf_kind( ast::Node const * node ) {
    226         LeafKindVisitor visitor;
    227         node->accept( visitor );
    228         return visitor.kind;
     225        return ast::Pass<LeafKindVisitor>::read( node );
    229226}
    230227
Note: See TracChangeset for help on using the changeset viewer.