Skip to main content

Module bindings

Module bindings 

Source

Modules§

rbs_alias_kind
rbs_attr_ivar_name_tag
rbs_attribute_kind
rbs_attribute_visibility
rbs_encoding_type_t
rbs_method_definition_kind
rbs_method_definition_visibility
rbs_node_type
rbs_type_param_variance

Structs§

__BindgenBitfieldUnit
id_table
rbs_allocator
rbs_allocator_page
rbs_ast_annotation
rbs_ast_bool
rbs_ast_comment
rbs_ast_declarations_class
rbs_ast_declarations_class_alias
rbs_ast_declarations_class_super
rbs_ast_declarations_constant
rbs_ast_declarations_global
rbs_ast_declarations_interface
rbs_ast_declarations_module
rbs_ast_declarations_module_alias
rbs_ast_declarations_module_self
rbs_ast_declarations_type_alias
rbs_ast_directives_use
rbs_ast_directives_use_single_clause
rbs_ast_directives_use_wildcard_clause
rbs_ast_integer
rbs_ast_members_alias
rbs_ast_members_attr_accessor
rbs_ast_members_attr_reader
rbs_ast_members_attr_writer
rbs_ast_members_class_instance_variable
rbs_ast_members_class_variable
rbs_ast_members_extend
rbs_ast_members_include
rbs_ast_members_instance_variable
rbs_ast_members_method_definition
rbs_ast_members_method_definition_overload
rbs_ast_members_prepend
rbs_ast_members_private
rbs_ast_members_public
rbs_ast_ruby_annotations_block_param_type_annotation
rbs_ast_ruby_annotations_class_alias_annotation
rbs_ast_ruby_annotations_colon_method_type_annotation
rbs_ast_ruby_annotations_double_splat_param_type_annotation
rbs_ast_ruby_annotations_instance_variable_annotation
rbs_ast_ruby_annotations_method_types_annotation
rbs_ast_ruby_annotations_module_alias_annotation
rbs_ast_ruby_annotations_node_type_assertion
rbs_ast_ruby_annotations_param_type_annotation
rbs_ast_ruby_annotations_return_type_annotation
rbs_ast_ruby_annotations_skip_annotation
rbs_ast_ruby_annotations_splat_param_type_annotation
rbs_ast_ruby_annotations_type_application_annotation
rbs_ast_string
rbs_ast_symbol
rbs_ast_symbol_t models user-defined identifiers like class names, method names, etc. These get stored in the parser’s own constant pool, and get surfaced to Ruby as Symbols.
rbs_ast_type_param
rbs_attr_ivar_name
rbs_comment_t
comment represents a sequence of comment lines.
rbs_constant_pool_bucket_t
A bucket in the hash map.
rbs_constant_pool_t
The overall constant pool, which stores constants found while parsing.
rbs_constant_t
A constant in the pool which effectively stores a string.
rbs_encoding_t
This struct defines the functions necessary to implement the encoding interface so we can determine how many bytes the subsequent character takes. Each callback should return the number of bytes, or 0 if the next bytes are invalid for the encoding and type.
rbs_error_t
rbs_hash
rbs_hash_node
rbs_lexer_t
The lexer state is the curren token.
rbs_location_range
rbs_location_range_list
rbs_location_range_list_node
rbs_method_type
rbs_namespace
rbs_node
rbs_node_list
rbs_node_list_node
rbs_parser_t
An RBS parser is a LL(3) parser.
rbs_position_t
The byte_pos (or char_pos) is the primary data. The rest are cache.
rbs_range_t
rbs_signature
rbs_string_t
rbs_token_t
rbs_type_name
rbs_types_alias
rbs_types_bases_any
rbs_types_bases_bool
rbs_types_bases_bottom
rbs_types_bases_class
rbs_types_bases_instance
rbs_types_bases_nil
rbs_types_bases_self
rbs_types_bases_top
rbs_types_bases_void
rbs_types_block
rbs_types_class_instance
rbs_types_class_singleton
rbs_types_function
rbs_types_function_param
rbs_types_interface
rbs_types_intersection
rbs_types_literal
rbs_types_optional
rbs_types_proc
rbs_types_record
rbs_types_record_field_type
rbs_types_tuple
rbs_types_union
rbs_types_untyped_function
rbs_types_variable

Constants§

RBSTokenType_ErrorToken
RBSTokenType_NullType
RBSTokenType_kALIAS
RBSTokenType_kAS
RBSTokenType_kATRBS
RBSTokenType_kATTRACCESSOR
RBSTokenType_kATTRREADER
RBSTokenType_kATTRWRITER
RBSTokenType_kBOOL
RBSTokenType_kBOT
RBSTokenType_kCLASS
RBSTokenType_kCLASSALIAS
RBSTokenType_kDEF
RBSTokenType_kEND
RBSTokenType_kEXTEND
RBSTokenType_kFALSE
RBSTokenType_kIN
RBSTokenType_kINCLUDE
RBSTokenType_kINSTANCE
RBSTokenType_kINTERFACE
RBSTokenType_kMODULE
RBSTokenType_kMODULEALIAS
RBSTokenType_kNIL
RBSTokenType_kOUT
RBSTokenType_kPREPEND
RBSTokenType_kPRIVATE
RBSTokenType_kPUBLIC
RBSTokenType_kRETURN
RBSTokenType_kSELF
RBSTokenType_kSINGLETON
RBSTokenType_kSKIP
RBSTokenType_kTOP
RBSTokenType_kTRUE
RBSTokenType_kTYPE
RBSTokenType_kUNCHECKED
RBSTokenType_kUNTYPED
RBSTokenType_kUSE
RBSTokenType_kVOID
RBSTokenType_k__TODO__
RBSTokenType_pAMP
RBSTokenType_pAREF_OPR
RBSTokenType_pARROW
RBSTokenType_pBANG
RBSTokenType_pBAR
RBSTokenType_pCOLON
RBSTokenType_pCOLON2
RBSTokenType_pCOMMA
RBSTokenType_pDOT
RBSTokenType_pDOT3
RBSTokenType_pEOF
RBSTokenType_pEQ
RBSTokenType_pFATARROW
RBSTokenType_pGT
RBSTokenType_pHAT
RBSTokenType_pLBRACE
RBSTokenType_pLBRACKET
RBSTokenType_pLPAREN
RBSTokenType_pLT
RBSTokenType_pQUESTION
RBSTokenType_pRBRACE
RBSTokenType_pRBRACKET
RBSTokenType_pRPAREN
RBSTokenType_pSTAR
RBSTokenType_pSTAR2
RBSTokenType_tA2IDENT
RBSTokenType_tAIDENT
RBSTokenType_tANNOTATION
RBSTokenType_tBANGIDENT
RBSTokenType_tCOMMENT
RBSTokenType_tDQSTRING
RBSTokenType_tDQSYMBOL
RBSTokenType_tEQIDENT
RBSTokenType_tGIDENT
RBSTokenType_tINLINECOMMENT
RBSTokenType_tINTEGER
RBSTokenType_tLIDENT
RBSTokenType_tLINECOMMENT
RBSTokenType_tOPERATOR
RBSTokenType_tQIDENT
RBSTokenType_tSQSTRING
RBSTokenType_tSQSYMBOL
RBSTokenType_tSYMBOL
RBSTokenType_tTRIVIA
RBSTokenType_tUIDENT
RBSTokenType_tULIDENT
RBSTokenType_tULLIDENT

Statics§

rbs_encodings
This is the table of all of the encodings that prism supports.

Functions§

rbs_constant_pool_free
Free the memory associated with a constant pool.
rbs_constant_pool_id_to_constant
Return a pointer to the constant indicated by the given constant id.
rbs_constant_pool_init
Initialize a new constant pool with a given capacity.
rbs_location_range_list_append
rbs_location_range_list_new
Allocate new rbs_location_range_list_t object through the given allocator.
rbs_parse_signature
rbs_parser_free
rbs_parser_new
Allocate new rbs_parser_t object.
rbs_string_new
Returns a new rbs_string_t struct

Type Aliases§

RBSTokenType
rbs_allocator_t
rbs_ast_annotation_t
rbs_ast_bool_t
rbs_ast_comment_t
rbs_ast_declarations_class_alias_t
rbs_ast_declarations_class_super_t
rbs_ast_declarations_class_t
rbs_ast_declarations_constant_t
rbs_ast_declarations_global_t
rbs_ast_declarations_interface_t
rbs_ast_declarations_module_alias_t
rbs_ast_declarations_module_self_t
rbs_ast_declarations_module_t
rbs_ast_declarations_type_alias_t
rbs_ast_directives_use_single_clause_t
rbs_ast_directives_use_t
rbs_ast_directives_use_wildcard_clause_t
rbs_ast_integer_t
rbs_ast_members_alias_t
rbs_ast_members_attr_accessor_t
rbs_ast_members_attr_reader_t
rbs_ast_members_attr_writer_t
rbs_ast_members_class_instance_variable_t
rbs_ast_members_class_variable_t
rbs_ast_members_extend_t
rbs_ast_members_include_t
rbs_ast_members_instance_variable_t
rbs_ast_members_method_definition_overload_t
rbs_ast_members_method_definition_t
rbs_ast_members_prepend_t
rbs_ast_members_private_t
rbs_ast_members_public_t
rbs_ast_ruby_annotations_block_param_type_annotation_t
rbs_ast_ruby_annotations_class_alias_annotation_t
rbs_ast_ruby_annotations_colon_method_type_annotation_t
rbs_ast_ruby_annotations_double_splat_param_type_annotation_t
rbs_ast_ruby_annotations_instance_variable_annotation_t
rbs_ast_ruby_annotations_method_types_annotation_t
rbs_ast_ruby_annotations_module_alias_annotation_t
rbs_ast_ruby_annotations_node_type_assertion_t
rbs_ast_ruby_annotations_param_type_annotation_t
rbs_ast_ruby_annotations_return_type_annotation_t
rbs_ast_ruby_annotations_skip_annotation_t
rbs_ast_ruby_annotations_splat_param_type_annotation_t
rbs_ast_ruby_annotations_type_application_annotation_t
rbs_ast_string_t
rbs_ast_symbol_t
rbs_ast_symbol_t models user-defined identifiers like class names, method names, etc. These get stored in the parser’s own constant pool, and get surfaced to Ruby as Symbols.
rbs_ast_type_param_t
rbs_attr_ivar_name_t
rbs_constant_id_t
A constant id is a unique identifier for a constant in the constant pool.
rbs_constant_pool_bucket_type_t
The type of bucket in the constant pool hash map. This determines how the bucket should be freed.
rbs_hash_node_t
rbs_location_range_list_node_t
rbs_location_range_list_t
rbs_method_type_t
rbs_namespace_t
rbs_node_list_node_t
rbs_node_list_t
rbs_node_t
rbs_signature_t
rbs_type_name_t
rbs_types_alias_t
rbs_types_bases_any_t
rbs_types_bases_bool_t
rbs_types_bases_bottom_t
rbs_types_bases_class_t
rbs_types_bases_instance_t
rbs_types_bases_nil_t
rbs_types_bases_self_t
rbs_types_bases_top_t
rbs_types_bases_void_t
rbs_types_block_t
rbs_types_class_instance_t
rbs_types_class_singleton_t
rbs_types_function_param_t
rbs_types_function_t
rbs_types_interface_t
rbs_types_intersection_t
rbs_types_literal_t
rbs_types_optional_t
rbs_types_proc_t
rbs_types_record_field_type_t
rbs_types_record_t
rbs_types_tuple_t
rbs_types_union_t
rbs_types_untyped_function_t
rbs_types_variable_t