NEURON
initial_block_visitor.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2025 EPFL.
3  * See the top-level LICENSE file for details.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #pragma once
9 
10 /**
11  * \file
12  * \brief \copybrief nmodl::visitor::MergeInitialBlocksVisitor
13  */
14 
15 #include "visitors/ast_visitor.hpp"
16 
17 namespace nmodl {
18 namespace visitor {
19 
20 /**
21  * \addtogroup visitor_classes
22  * \{
23  */
24 
25 /**
26  * \class MergeInitialBlocksVisitor
27  * \brief Visitor which merges all INITIAL blocks into one
28  */
30  public:
31  void visit_program(ast::Program& node) override;
32 };
33 
34 /** \} */ // end of visitor_classes
35 
36 } // namespace visitor
37 } // namespace nmodl
Concrete visitor for all AST classes.
Represents top level AST node for whole NMODL input.
Definition: program.hpp:39
Concrete visitor for all AST classes.
Definition: ast_visitor.hpp:37
Visitor which merges all INITIAL blocks into one.
void visit_program(ast::Program &node) override
visit node of type ast::Program
encapsulates code generation backend implementations
Definition: ast_common.hpp:26
static Node * node(Object *)
Definition: netcvode.cpp:291