Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocationTools.cpp

    rb05beaa rc86b08d  
    128128    macro(FinallyClause, FinallyClause) \
    129129    macro(SuspendStmt, Stmt) \
     130    macro(WhenClause, WhenClause) \
    130131    macro(WaitForStmt, Stmt) \
    131132    macro(WaitForClause, WaitForClause) \
     133    macro(WaitUntilStmt, Stmt) \
    132134    macro(WithStmt, Decl) \
    133135    macro(NullStmt, NullStmt) \
     
    208210
    209211struct LeafKindVisitor : public ast::Visitor {
    210         LeafKind result;
     212        LeafKind kind;
    211213
    212214#define VISIT(node_type, return_type) \
    213215        const ast::return_type * visit( const ast::node_type * ) final { \
    214                 result = LeafKind::node_type; \
     216                kind = LeafKind::node_type; \
    215217                return nullptr; \
    216218        }
     
    222224
    223225LeafKind get_leaf_kind( ast::Node const * node ) {
    224         return ast::Pass<LeafKindVisitor>::read( node );
     226        LeafKindVisitor visitor;
     227        node->accept( visitor );
     228        return visitor.kind;
    225229}
    226230
Note: See TracChangeset for help on using the changeset viewer.