struct Bindgen::TypeDatabase::MethodPattern

Overview

An entry of TypeConfig#ignore_methods. Matches a method by:

Defined in:

bindgen/type_database.cr

Constant Summary

CALL_OPERATOR = "operator()"

The name of the call operator, whose parentheses don't open a parameter list: operator() is a name, operator()(int) a signature.

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(source : String) #

[View source]

Class Method Detail

def self.normalize(signature : String) : String #

Writes the signature like Parser::Method#signature does: One space before a run of * and &, none around parentheses, , between the arguments and const after them.


[View source]
def self.parameter_list_index(source : String) : Int32 | Nil #

The index of the ( opening the parameter list of source, or nil for a plain name.


[View source]

Instance Method Detail

def matches?(method : Parser::Method) : Bool #

Does method match this entry?


[View source]
def source : String #

The entry as configured.


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]