@@ -96,41 +96,42 @@ enum rbs_node_type {
9696 RBS_AST_RUBY_ANNOTATIONS_METHOD_TYPES_ANNOTATION = 35 ,
9797 RBS_AST_RUBY_ANNOTATIONS_MODULE_ALIAS_ANNOTATION = 36 ,
9898 RBS_AST_RUBY_ANNOTATIONS_NODE_TYPE_ASSERTION = 37 ,
99- RBS_AST_RUBY_ANNOTATIONS_RETURN_TYPE_ANNOTATION = 38 ,
100- RBS_AST_RUBY_ANNOTATIONS_SKIP_ANNOTATION = 39 ,
101- RBS_AST_RUBY_ANNOTATIONS_TYPE_APPLICATION_ANNOTATION = 40 ,
102- RBS_AST_STRING = 41 ,
103- RBS_AST_TYPE_PARAM = 42 ,
104- RBS_METHOD_TYPE = 43 ,
105- RBS_NAMESPACE = 44 ,
106- RBS_SIGNATURE = 45 ,
107- RBS_TYPE_NAME = 46 ,
108- RBS_TYPES_ALIAS = 47 ,
109- RBS_TYPES_BASES_ANY = 48 ,
110- RBS_TYPES_BASES_BOOL = 49 ,
111- RBS_TYPES_BASES_BOTTOM = 50 ,
112- RBS_TYPES_BASES_CLASS = 51 ,
113- RBS_TYPES_BASES_INSTANCE = 52 ,
114- RBS_TYPES_BASES_NIL = 53 ,
115- RBS_TYPES_BASES_SELF = 54 ,
116- RBS_TYPES_BASES_TOP = 55 ,
117- RBS_TYPES_BASES_VOID = 56 ,
118- RBS_TYPES_BLOCK = 57 ,
119- RBS_TYPES_CLASS_INSTANCE = 58 ,
120- RBS_TYPES_CLASS_SINGLETON = 59 ,
121- RBS_TYPES_FUNCTION = 60 ,
122- RBS_TYPES_FUNCTION_PARAM = 61 ,
123- RBS_TYPES_INTERFACE = 62 ,
124- RBS_TYPES_INTERSECTION = 63 ,
125- RBS_TYPES_LITERAL = 64 ,
126- RBS_TYPES_OPTIONAL = 65 ,
127- RBS_TYPES_PROC = 66 ,
128- RBS_TYPES_RECORD = 67 ,
129- RBS_TYPES_RECORD_FIELD_TYPE = 68 ,
130- RBS_TYPES_TUPLE = 69 ,
131- RBS_TYPES_UNION = 70 ,
132- RBS_TYPES_UNTYPED_FUNCTION = 71 ,
133- RBS_TYPES_VARIABLE = 72 ,
99+ RBS_AST_RUBY_ANNOTATIONS_PARAM_TYPE_ANNOTATION = 38 ,
100+ RBS_AST_RUBY_ANNOTATIONS_RETURN_TYPE_ANNOTATION = 39 ,
101+ RBS_AST_RUBY_ANNOTATIONS_SKIP_ANNOTATION = 40 ,
102+ RBS_AST_RUBY_ANNOTATIONS_TYPE_APPLICATION_ANNOTATION = 41 ,
103+ RBS_AST_STRING = 42 ,
104+ RBS_AST_TYPE_PARAM = 43 ,
105+ RBS_METHOD_TYPE = 44 ,
106+ RBS_NAMESPACE = 45 ,
107+ RBS_SIGNATURE = 46 ,
108+ RBS_TYPE_NAME = 47 ,
109+ RBS_TYPES_ALIAS = 48 ,
110+ RBS_TYPES_BASES_ANY = 49 ,
111+ RBS_TYPES_BASES_BOOL = 50 ,
112+ RBS_TYPES_BASES_BOTTOM = 51 ,
113+ RBS_TYPES_BASES_CLASS = 52 ,
114+ RBS_TYPES_BASES_INSTANCE = 53 ,
115+ RBS_TYPES_BASES_NIL = 54 ,
116+ RBS_TYPES_BASES_SELF = 55 ,
117+ RBS_TYPES_BASES_TOP = 56 ,
118+ RBS_TYPES_BASES_VOID = 57 ,
119+ RBS_TYPES_BLOCK = 58 ,
120+ RBS_TYPES_CLASS_INSTANCE = 59 ,
121+ RBS_TYPES_CLASS_SINGLETON = 60 ,
122+ RBS_TYPES_FUNCTION = 61 ,
123+ RBS_TYPES_FUNCTION_PARAM = 62 ,
124+ RBS_TYPES_INTERFACE = 63 ,
125+ RBS_TYPES_INTERSECTION = 64 ,
126+ RBS_TYPES_LITERAL = 65 ,
127+ RBS_TYPES_OPTIONAL = 66 ,
128+ RBS_TYPES_PROC = 67 ,
129+ RBS_TYPES_RECORD = 68 ,
130+ RBS_TYPES_RECORD_FIELD_TYPE = 69 ,
131+ RBS_TYPES_TUPLE = 70 ,
132+ RBS_TYPES_UNION = 71 ,
133+ RBS_TYPES_UNTYPED_FUNCTION = 72 ,
134+ RBS_TYPES_VARIABLE = 73 ,
134135 RBS_AST_SYMBOL ,
135136};
136137
@@ -612,6 +613,16 @@ typedef struct rbs_ast_ruby_annotations_node_type_assertion {
612613 struct rbs_node * type ;
613614} rbs_ast_ruby_annotations_node_type_assertion_t ;
614615
616+ typedef struct rbs_ast_ruby_annotations_param_type_annotation {
617+ rbs_node_t base ;
618+
619+ rbs_location_range prefix_location ;
620+ rbs_location_range name_location ;
621+ rbs_location_range colon_location ;
622+ struct rbs_node * param_type ;
623+ rbs_location_range comment_location ; /* Optional */
624+ } rbs_ast_ruby_annotations_param_type_annotation_t ;
625+
615626typedef struct rbs_ast_ruby_annotations_return_type_annotation {
616627 rbs_node_t base ;
617628
@@ -881,6 +892,7 @@ typedef union rbs_ast_ruby_annotations {
881892 rbs_ast_ruby_annotations_node_type_assertion_t node_type_assertion ;
882893 rbs_ast_ruby_annotations_return_type_annotation_t return_type_annotation ;
883894 rbs_ast_ruby_annotations_skip_annotation_t skip_annotation ;
895+ rbs_ast_ruby_annotations_param_type_annotation_t param_type_annotation ;
884896} rbs_ast_ruby_annotations_t ;
885897
886898/// `rbs_ast_symbol_t` models user-defined identifiers like class names, method names, etc.
@@ -929,6 +941,7 @@ rbs_ast_ruby_annotations_instance_variable_annotation_t *rbs_ast_ruby_annotation
929941rbs_ast_ruby_annotations_method_types_annotation_t * rbs_ast_ruby_annotations_method_types_annotation_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_node_list_t * overloads , rbs_location_range_list_t * vertical_bar_locations , rbs_location_range dot3_location );
930942rbs_ast_ruby_annotations_module_alias_annotation_t * rbs_ast_ruby_annotations_module_alias_annotation_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_location_range keyword_location , rbs_type_name_t * type_name , rbs_location_range type_name_location );
931943rbs_ast_ruby_annotations_node_type_assertion_t * rbs_ast_ruby_annotations_node_type_assertion_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_node_t * type );
944+ rbs_ast_ruby_annotations_param_type_annotation_t * rbs_ast_ruby_annotations_param_type_annotation_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_location_range name_location , rbs_location_range colon_location , rbs_node_t * param_type , rbs_location_range comment_location );
932945rbs_ast_ruby_annotations_return_type_annotation_t * rbs_ast_ruby_annotations_return_type_annotation_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_location_range return_location , rbs_location_range colon_location , rbs_node_t * return_type , rbs_location_range comment_location );
933946rbs_ast_ruby_annotations_skip_annotation_t * rbs_ast_ruby_annotations_skip_annotation_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_location_range skip_location , rbs_location_range comment_location );
934947rbs_ast_ruby_annotations_type_application_annotation_t * rbs_ast_ruby_annotations_type_application_annotation_new (rbs_allocator_t * allocator , rbs_location_range location , rbs_location_range prefix_location , rbs_node_list_t * type_args , rbs_location_range close_bracket_location , rbs_location_range_list_t * comma_locations );
0 commit comments