NEURON
merge_top_level_blocks.cpp File Reference
#include "ast/breakpoint_block.hpp"
#include "ast/initial_block.hpp"
#include "ast/program.hpp"
#include "ast/statement_block.hpp"
#include "parser/nmodl_driver.hpp"
#include "utils/test_utils.hpp"
#include "visitors/merge_top_level_blocks_visitor.hpp"
#include "visitors/nmodl_visitor.hpp"
#include "visitors/symtab_visitor.hpp"
#include "visitors/visitor_utils.hpp"
#include "visitors/json_visitor.hpp"
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

Go to the source code of this file.

Functions

template<typename block_type , ast::AstNodeType node_type>
auto generate_mod_after_merge_top_level_blocks_visitor (std::string const &text)
 
 SCENARIO ("Check multiple INITIAL blocks are handled properly", "[visitor][merge_top_level_blocks]")
 
 SCENARIO ("Check multiple BREAKPOINT blocks are handled properly", "[visitor][merge_top_level_blocks]")
 

Function Documentation

◆ generate_mod_after_merge_top_level_blocks_visitor()

template<typename block_type , ast::AstNodeType node_type>
auto generate_mod_after_merge_top_level_blocks_visitor ( std::string const &  text)

Definition at line 33 of file merge_top_level_blocks.cpp.

◆ SCENARIO() [1/2]

SCENARIO ( "Check multiple BREAKPOINT blocks are handled properly"  ,
""  [visitor][merge_top_level_blocks] 
)

Definition at line 220 of file merge_top_level_blocks.cpp.

◆ SCENARIO() [2/2]

SCENARIO ( "Check multiple INITIAL blocks are handled properly"  ,
""  [visitor][merge_top_level_blocks] 
)

Definition at line 40 of file merge_top_level_blocks.cpp.