Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/CodeLocationTools.cpp

    r561354f rc86b08d  
    105105    macro(UnionDecl, Decl) \
    106106    macro(EnumDecl, Decl) \
    107         macro(AdtDecl, Decl) \
    108107    macro(TraitDecl, Decl) \
    109108    macro(TypeDecl, Decl) \
     
    129128    macro(FinallyClause, FinallyClause) \
    130129    macro(SuspendStmt, Stmt) \
     130    macro(WhenClause, WhenClause) \
    131131    macro(WaitForStmt, Stmt) \
    132132    macro(WaitForClause, WaitForClause) \
     133    macro(WaitUntilStmt, Stmt) \
    133134    macro(WithStmt, Decl) \
    134135    macro(NullStmt, NullStmt) \
     
    209210
    210211struct LeafKindVisitor : public ast::Visitor {
    211         LeafKind result;
     212        LeafKind kind;
    212213
    213214#define VISIT(node_type, return_type) \
    214215        const ast::return_type * visit( const ast::node_type * ) final { \
    215                 result = LeafKind::node_type; \
     216                kind = LeafKind::node_type; \
    216217                return nullptr; \
    217218        }
     
    223224
    224225LeafKind get_leaf_kind( ast::Node const * node ) {
    225         return ast::Pass<LeafKindVisitor>::read( node );
     226        LeafKindVisitor visitor;
     227        node->accept( visitor );
     228        return visitor.kind;
    226229}
    227230
Note: See TracChangeset for help on using the changeset viewer.