absyntax_utils/search_base_type.cc
changeset 706 31553c22f318
parent 625 c0bda77b37a0
child 793 268bf4ca5fa1
equal deleted inserted replaced
705:f2323f79252e 706:31553c22f318
    86   this->is_enumerated = false;
    86   this->is_enumerated = false;
    87   type_decl->accept(*this);
    87   type_decl->accept(*this);
    88   return this->is_enumerated;
    88   return this->is_enumerated;
    89 }
    89 }
    90 
    90 
       
    91 bool search_base_type_c::type_is_fb(symbol_c* type_decl) {
       
    92   this->is_fb = false;
       
    93   type_decl->accept(*this);
       
    94   return this->is_fb;
       
    95 }
    91 
    96 
    92 /*************************/
    97 /*************************/
    93 /* B.1 - Common elements */
    98 /* B.1 - Common elements */
    94 /*************************/
    99 /*************************/
    95 
   100 
   333 /*****************************/
   338 /*****************************/
   334 /* B 1.5.2 - Function Blocks */
   339 /* B 1.5.2 - Function Blocks */
   335 /*****************************/
   340 /*****************************/
   336 /*  FUNCTION_BLOCK derived_function_block_name io_OR_other_var_declarations function_block_body END_FUNCTION_BLOCK */
   341 /*  FUNCTION_BLOCK derived_function_block_name io_OR_other_var_declarations function_block_body END_FUNCTION_BLOCK */
   337 // SYM_REF3(function_block_declaration_c, fblock_name, var_declarations, fblock_body)
   342 // SYM_REF3(function_block_declaration_c, fblock_name, var_declarations, fblock_body)
   338 void *search_base_type_c::visit(function_block_declaration_c *symbol)                   {return (void *)symbol;}
   343 void *search_base_type_c::visit(function_block_declaration_c *symbol)                   {
       
   344 	this->is_fb = true;
       
   345 	return (void *)symbol;
       
   346 }
   339 
   347 
   340 
   348 
   341 
   349 
   342 /*********************************************/
   350 /*********************************************/
   343 /* B.1.6  Sequential function chart elements */
   351 /* B.1.6  Sequential function chart elements */