module Bindgen::Graph::Visitor::MayDelete

Overview

A visitor including this module will be allowed to delete a node out of a Container, while iterating over that same container, from within an inner visitor method.

Included Modules

Direct including types

Defined in:

bindgen/graph/visitor.cr

Instance Method Summary

Instance methods inherited from module Bindgen::Graph::Visitor

visit_alias(alias_name) visit_alias, visit_children(container : Container) visit_children, visit_class(klass) visit_class, visit_constant(constant) visit_constant, visit_enum(enumeration) visit_enum, visit_library(library) visit_library, visit_method(method) visit_method, visit_namespace(ns) visit_namespace, visit_node(node : Node) visit_node, visit_node?(node : Node) visit_node?, visit_platform_specific(specific) visit_platform_specific, visit_struct(structure) visit_struct, visit_union(structure) visit_union

Instance Method Detail

def visit_children(container : Container) #

Visits all children of container. The containers nodes list is copied internally before iterating. It is thus acceptable to delete items from the #visit_X method called by this.


[View source]