@@ -46,43 +46,44 @@ enum rbs_node_type {
4646 RBS_AST_MEMBERS_PRIVATE = 30 ,
4747 RBS_AST_MEMBERS_PUBLIC = 31 ,
4848 RBS_AST_RUBY_ANNOTATIONS_COLON_METHOD_TYPE_ANNOTATION = 32 ,
49- RBS_AST_RUBY_ANNOTATIONS_METHOD_TYPES_ANNOTATION = 33 ,
50- RBS_AST_RUBY_ANNOTATIONS_NODE_TYPE_ASSERTION = 34 ,
51- RBS_AST_RUBY_ANNOTATIONS_RETURN_TYPE_ANNOTATION = 35 ,
52- RBS_AST_RUBY_ANNOTATIONS_SKIP_ANNOTATION = 36 ,
53- RBS_AST_RUBY_ANNOTATIONS_TYPE_APPLICATION_ANNOTATION = 37 ,
54- RBS_AST_STRING = 38 ,
55- RBS_AST_TYPE_PARAM = 39 ,
56- RBS_METHOD_TYPE = 40 ,
57- RBS_NAMESPACE = 41 ,
58- RBS_SIGNATURE = 42 ,
59- RBS_TYPE_NAME = 43 ,
60- RBS_TYPES_ALIAS = 44 ,
61- RBS_TYPES_BASES_ANY = 45 ,
62- RBS_TYPES_BASES_BOOL = 46 ,
63- RBS_TYPES_BASES_BOTTOM = 47 ,
64- RBS_TYPES_BASES_CLASS = 48 ,
65- RBS_TYPES_BASES_INSTANCE = 49 ,
66- RBS_TYPES_BASES_NIL = 50 ,
67- RBS_TYPES_BASES_SELF = 51 ,
68- RBS_TYPES_BASES_TOP = 52 ,
69- RBS_TYPES_BASES_VOID = 53 ,
70- RBS_TYPES_BLOCK = 54 ,
71- RBS_TYPES_CLASS_INSTANCE = 55 ,
72- RBS_TYPES_CLASS_SINGLETON = 56 ,
73- RBS_TYPES_FUNCTION = 57 ,
74- RBS_TYPES_FUNCTION_PARAM = 58 ,
75- RBS_TYPES_INTERFACE = 59 ,
76- RBS_TYPES_INTERSECTION = 60 ,
77- RBS_TYPES_LITERAL = 61 ,
78- RBS_TYPES_OPTIONAL = 62 ,
79- RBS_TYPES_PROC = 63 ,
80- RBS_TYPES_RECORD = 64 ,
81- RBS_TYPES_RECORD_FIELD_TYPE = 65 ,
82- RBS_TYPES_TUPLE = 66 ,
83- RBS_TYPES_UNION = 67 ,
84- RBS_TYPES_UNTYPED_FUNCTION = 68 ,
85- RBS_TYPES_VARIABLE = 69 ,
49+ RBS_AST_RUBY_ANNOTATIONS_INSTANCE_VARIABLE_ANNOTATION = 33 ,
50+ RBS_AST_RUBY_ANNOTATIONS_METHOD_TYPES_ANNOTATION = 34 ,
51+ RBS_AST_RUBY_ANNOTATIONS_NODE_TYPE_ASSERTION = 35 ,
52+ RBS_AST_RUBY_ANNOTATIONS_RETURN_TYPE_ANNOTATION = 36 ,
53+ RBS_AST_RUBY_ANNOTATIONS_SKIP_ANNOTATION = 37 ,
54+ RBS_AST_RUBY_ANNOTATIONS_TYPE_APPLICATION_ANNOTATION = 38 ,
55+ RBS_AST_STRING = 39 ,
56+ RBS_AST_TYPE_PARAM = 40 ,
57+ RBS_METHOD_TYPE = 41 ,
58+ RBS_NAMESPACE = 42 ,
59+ RBS_SIGNATURE = 43 ,
60+ RBS_TYPE_NAME = 44 ,
61+ RBS_TYPES_ALIAS = 45 ,
62+ RBS_TYPES_BASES_ANY = 46 ,
63+ RBS_TYPES_BASES_BOOL = 47 ,
64+ RBS_TYPES_BASES_BOTTOM = 48 ,
65+ RBS_TYPES_BASES_CLASS = 49 ,
66+ RBS_TYPES_BASES_INSTANCE = 50 ,
67+ RBS_TYPES_BASES_NIL = 51 ,
68+ RBS_TYPES_BASES_SELF = 52 ,
69+ RBS_TYPES_BASES_TOP = 53 ,
70+ RBS_TYPES_BASES_VOID = 54 ,
71+ RBS_TYPES_BLOCK = 55 ,
72+ RBS_TYPES_CLASS_INSTANCE = 56 ,
73+ RBS_TYPES_CLASS_SINGLETON = 57 ,
74+ RBS_TYPES_FUNCTION = 58 ,
75+ RBS_TYPES_FUNCTION_PARAM = 59 ,
76+ RBS_TYPES_INTERFACE = 60 ,
77+ RBS_TYPES_INTERSECTION = 61 ,
78+ RBS_TYPES_LITERAL = 62 ,
79+ RBS_TYPES_OPTIONAL = 63 ,
80+ RBS_TYPES_PROC = 64 ,
81+ RBS_TYPES_RECORD = 65 ,
82+ RBS_TYPES_RECORD_FIELD_TYPE = 66 ,
83+ RBS_TYPES_TUPLE = 67 ,
84+ RBS_TYPES_UNION = 68 ,
85+ RBS_TYPES_UNTYPED_FUNCTION = 69 ,
86+ RBS_TYPES_VARIABLE = 70 ,
8687 RBS_KEYWORD ,
8788 RBS_AST_SYMBOL ,
8889};
@@ -406,6 +407,17 @@ typedef struct rbs_ast_ruby_annotations_colon_method_type_annotation {
406407 struct rbs_node * method_type ;
407408} rbs_ast_ruby_annotations_colon_method_type_annotation_t ;
408409
410+ typedef struct rbs_ast_ruby_annotations_instance_variable_annotation {
411+ rbs_node_t base ;
412+
413+ struct rbs_location * prefix_location ;
414+ struct rbs_ast_symbol * ivar_name ;
415+ struct rbs_location * ivar_name_location ;
416+ struct rbs_location * colon_location ;
417+ struct rbs_node * type ;
418+ struct rbs_location * comment_location ;
419+ } rbs_ast_ruby_annotations_instance_variable_annotation_t ;
420+
409421typedef struct rbs_ast_ruby_annotations_method_types_annotation {
410422 rbs_node_t base ;
411423
@@ -718,6 +730,7 @@ rbs_ast_members_prepend_t *rbs_ast_members_prepend_new(rbs_allocator_t *allocato
718730rbs_ast_members_private_t * rbs_ast_members_private_new (rbs_allocator_t * allocator , rbs_location_t * location );
719731rbs_ast_members_public_t * rbs_ast_members_public_new (rbs_allocator_t * allocator , rbs_location_t * location );
720732rbs_ast_ruby_annotations_colon_method_type_annotation_t * rbs_ast_ruby_annotations_colon_method_type_annotation_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_node_list_t * annotations , rbs_node_t * method_type );
733+ rbs_ast_ruby_annotations_instance_variable_annotation_t * rbs_ast_ruby_annotations_instance_variable_annotation_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_ast_symbol_t * ivar_name , rbs_location_t * ivar_name_location , rbs_location_t * colon_location , rbs_node_t * type , rbs_location_t * comment_location );
721734rbs_ast_ruby_annotations_method_types_annotation_t * rbs_ast_ruby_annotations_method_types_annotation_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_node_list_t * overloads , rbs_location_list_t * vertical_bar_locations );
722735rbs_ast_ruby_annotations_node_type_assertion_t * rbs_ast_ruby_annotations_node_type_assertion_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_node_t * type );
723736rbs_ast_ruby_annotations_return_type_annotation_t * rbs_ast_ruby_annotations_return_type_annotation_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_location_t * return_location , rbs_location_t * colon_location , rbs_node_t * return_type , rbs_location_t * comment_location );
0 commit comments