Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocationTools.cpp

    rc86b08d rb05beaa  
    128128    macro(FinallyClause, FinallyClause) \
    129129    macro(SuspendStmt, Stmt) \
    130     macro(WhenClause, WhenClause) \
    131130    macro(WaitForStmt, Stmt) \
    132131    macro(WaitForClause, WaitForClause) \
    133     macro(WaitUntilStmt, Stmt) \
    134132    macro(WithStmt, Decl) \
    135133    macro(NullStmt, NullStmt) \
     
    210208
    211209struct LeafKindVisitor : public ast::Visitor {
    212         LeafKind kind;
     210        LeafKind result;
    213211
    214212#define VISIT(node_type, return_type) \
    215213        const ast::return_type * visit( const ast::node_type * ) final { \
    216                 kind = LeafKind::node_type; \
     214                result = LeafKind::node_type; \
    217215                return nullptr; \
    218216        }
     
    224222
    225223LeafKind get_leaf_kind( ast::Node const * node ) {
    226         LeafKindVisitor visitor;
    227         node->accept( visitor );
    228         return visitor.kind;
     224        return ast::Pass<LeafKindVisitor>::read( node );
    229225}
    230226
Note: See TracChangeset for help on using the changeset viewer.