#include "rbs_extension.h" VALUE RBS_Parser; VALUE RBS; VALUE RBS_AST; VALUE RBS_AST_Comment; VALUE RBS_AST_Annotation; VALUE RBS_AST_TypeParam; VALUE RBS_AST_Declarations; VALUE RBS_AST_Declarations_Alias; VALUE RBS_AST_Declarations_Constant; VALUE RBS_AST_Declarations_Global; VALUE RBS_AST_Declarations_Interface; VALUE RBS_AST_Declarations_Module; VALUE RBS_AST_Declarations_Module_Self; VALUE RBS_AST_Declarations_Class; VALUE RBS_AST_Declarations_Class_Super; VALUE RBS_AST_Members; VALUE RBS_AST_Members_Alias; VALUE RBS_AST_Members_AttrAccessor; VALUE RBS_AST_Members_AttrReader; VALUE RBS_AST_Members_AttrWriter; VALUE RBS_AST_Members_ClassInstanceVariable; VALUE RBS_AST_Members_ClassVariable; VALUE RBS_AST_Members_Extend; VALUE RBS_AST_Members_Include; VALUE RBS_AST_Members_InstanceVariable; VALUE RBS_AST_Members_MethodDefinition; VALUE RBS_AST_Members_MethodDefinition_Overload; VALUE RBS_AST_Members_Prepend; VALUE RBS_AST_Members_Private; VALUE RBS_AST_Members_Public; VALUE RBS_Namespace; VALUE RBS_TypeName; VALUE RBS_Types_Alias; VALUE RBS_Types_Bases_Any; VALUE RBS_Types_Bases_Bool; VALUE RBS_Types_Bases_Bottom; VALUE RBS_Types_Bases_Class; VALUE RBS_Types_Bases_Instance; VALUE RBS_Types_Bases_Nil; VALUE RBS_Types_Bases_Self; VALUE RBS_Types_Bases_Top; VALUE RBS_Types_Bases_Void; VALUE RBS_Types_Bases; VALUE RBS_Types_Block; VALUE RBS_Types_ClassInstance; VALUE RBS_Types_ClassSingleton; VALUE RBS_Types_Function_Param; VALUE RBS_Types_Function; VALUE RBS_Types_Interface; VALUE RBS_Types_Intersection; VALUE RBS_Types_Literal; VALUE RBS_Types_Optional; VALUE RBS_Types_Proc; VALUE RBS_Types_Record; VALUE RBS_Types_Tuple; VALUE RBS_Types_Union; VALUE RBS_Types_Variable; VALUE RBS_Types; VALUE RBS_MethodType; VALUE RBS_ParsingError; void rbs__init_constants(void) { ID id_RBS = rb_intern_const("RBS"); RBS = rb_const_get(rb_cObject, id_RBS); RBS_ParsingError = rb_const_get(RBS, rb_intern("ParsingError")); RBS_AST = rb_const_get(RBS, rb_intern("AST")); RBS_AST_Comment = rb_const_get(RBS_AST, rb_intern("Comment")); RBS_AST_Annotation = rb_const_get(RBS_AST, rb_intern("Annotation")); RBS_AST_TypeParam = rb_const_get(RBS_AST, rb_intern("TypeParam")); RBS_AST_Declarations = rb_const_get(RBS_AST, rb_intern("Declarations")); RBS_AST_Declarations_Alias = rb_const_get(RBS_AST_Declarations, rb_intern("Alias")); RBS_AST_Declarations_Constant = rb_const_get(RBS_AST_Declarations, rb_intern("Constant")); RBS_AST_Declarations_Global = rb_const_get(RBS_AST_Declarations, rb_intern("Global")); RBS_AST_Declarations_Interface = rb_const_get(RBS_AST_Declarations, rb_intern("Interface")); RBS_AST_Declarations_Module = rb_const_get(RBS_AST_Declarations, rb_intern("Module")); RBS_AST_Declarations_Module_Self = rb_const_get(RBS_AST_Declarations_Module, rb_intern("Self")); RBS_AST_Declarations_Class = rb_const_get(RBS_AST_Declarations, rb_intern("Class")); RBS_AST_Declarations_Class_Super = rb_const_get(RBS_AST_Declarations_Class, rb_intern("Super")); RBS_AST_Members = rb_const_get(RBS_AST, rb_intern("Members")); RBS_AST_Members_Alias = rb_const_get(RBS_AST_Members, rb_intern("Alias")); RBS_AST_Members_AttrAccessor = rb_const_get(RBS_AST_Members, rb_intern("AttrAccessor")); RBS_AST_Members_AttrReader = rb_const_get(RBS_AST_Members, rb_intern("AttrReader")); RBS_AST_Members_AttrWriter = rb_const_get(RBS_AST_Members, rb_intern("AttrWriter")); RBS_AST_Members_ClassInstanceVariable = rb_const_get(RBS_AST_Members, rb_intern("ClassInstanceVariable")); RBS_AST_Members_ClassVariable = rb_const_get(RBS_AST_Members, rb_intern("ClassVariable")); RBS_AST_Members_Extend = rb_const_get(RBS_AST_Members, rb_intern("Extend")); RBS_AST_Members_Include = rb_const_get(RBS_AST_Members, rb_intern("Include")); RBS_AST_Members_InstanceVariable = rb_const_get(RBS_AST_Members, rb_intern("InstanceVariable")); RBS_AST_Members_MethodDefinition = rb_const_get(RBS_AST_Members, rb_intern("MethodDefinition")); RBS_AST_Members_MethodDefinition_Overload = rb_const_get(RBS_AST_Members_MethodDefinition, rb_intern("Overload")); RBS_AST_Members_Prepend = rb_const_get(RBS_AST_Members, rb_intern("Prepend")); RBS_AST_Members_Private = rb_const_get(RBS_AST_Members, rb_intern("Private")); RBS_AST_Members_Public = rb_const_get(RBS_AST_Members, rb_intern("Public")); RBS_Namespace = rb_const_get(RBS, rb_intern("Namespace")); RBS_TypeName = rb_const_get(RBS, rb_intern("TypeName")); RBS_Types = rb_const_get(RBS, rb_intern("Types")); RBS_Types_Alias = rb_const_get(RBS_Types, rb_intern("Alias")); RBS_Types_Bases = rb_const_get(RBS_Types, rb_intern("Bases")); RBS_Types_Bases_Any = rb_const_get(RBS_Types_Bases, rb_intern("Any")); RBS_Types_Bases_Bool = rb_const_get(RBS_Types_Bases, rb_intern("Bool")); RBS_Types_Bases_Bottom = rb_const_get(RBS_Types_Bases, rb_intern("Bottom")); RBS_Types_Bases_Class = rb_const_get(RBS_Types_Bases, rb_intern("Class")); RBS_Types_Bases_Instance = rb_const_get(RBS_Types_Bases, rb_intern("Instance")); RBS_Types_Bases_Nil = rb_const_get(RBS_Types_Bases, rb_intern("Nil")); RBS_Types_Bases_Self = rb_const_get(RBS_Types_Bases, rb_intern("Self")); RBS_Types_Bases_Top = rb_const_get(RBS_Types_Bases, rb_intern("Top")); RBS_Types_Bases_Void = rb_const_get(RBS_Types_Bases, rb_intern("Void")); RBS_Types_Block = rb_const_get(RBS_Types, rb_intern("Block")); RBS_Types_ClassInstance = rb_const_get(RBS_Types, rb_intern("ClassInstance")); RBS_Types_ClassSingleton = rb_const_get(RBS_Types, rb_intern("ClassSingleton")); RBS_Types_Function = rb_const_get(RBS_Types, rb_intern("Function")); RBS_Types_Function_Param = rb_const_get(RBS_Types_Function, rb_intern("Param")); RBS_Types_Interface = rb_const_get(RBS_Types, rb_intern("Interface")); RBS_Types_Intersection = rb_const_get(RBS_Types, rb_intern("Intersection")); RBS_Types_Literal = rb_const_get(RBS_Types, rb_intern("Literal")); RBS_Types_Optional = rb_const_get(RBS_Types, rb_intern("Optional")); RBS_Types_Proc = rb_const_get(RBS_Types, rb_intern("Proc")); RBS_Types_Record = rb_const_get(RBS_Types, rb_intern("Record")); RBS_Types_Tuple = rb_const_get(RBS_Types, rb_intern("Tuple")); RBS_Types_Union = rb_const_get(RBS_Types, rb_intern("Union")); RBS_Types_Variable = rb_const_get(RBS_Types, rb_intern("Variable")); RBS_MethodType = rb_const_get(RBS, rb_intern("MethodType")); }