def visit_input_line(self, node): """ Private method: Used to visit a single input line, create the corresponding symbol and update the scope. :param node: a single input line. :type node: ast_input_line """ if node.is_spike() and node.has_datatype(): node.get_datatype().update_scope(node.get_scope()) elif node.is_spike(): code, message = Messages.get_buffer_type_not_defined(node.get_name()) Logger.log_message(code=code, message=message, error_position=node.get_source_position(), log_level=LoggingLevel.WARNING) for inputType in node.get_input_types(): inputType.update_scope(node.get_scope())
def visit_input_line(self, node): """ Private method: Used to visit a single input line, create the corresponding symbol and update the scope. :param node: a single input line. :type node: ast_input_line """ if node.is_spike() and node.has_datatype(): node.get_datatype().update_scope(node.get_scope()) elif node.is_spike(): code, message = Messages.get_buffer_type_not_defined(node.get_name()) Logger.log_message(code=code, message=message, error_position=node.get_source_position(), log_level=LoggingLevel.WARNING) for inputType in node.get_input_types(): inputType.update_scope(node.get_scope())
def visit_input_port(self, node): """ Private method: Used to visit a single input port, create the corresponding symbol and update the scope. :param node: a single input port. :type node: ASTInputPort """ if not node.has_datatype(): code, message = Messages.get_buffer_type_not_defined( node.get_name()) Logger.log_message(code=code, message=message, error_position=node.get_source_position(), log_level=LoggingLevel.ERROR) else: node.get_datatype().update_scope(node.get_scope()) for qual in node.get_input_qualifiers(): qual.update_scope(node.get_scope())