@@ -48,40 +48,41 @@ enum rbs_node_type {
4848 RBS_AST_RUBY_ANNOTATIONS_COLON_METHOD_TYPE_ANNOTATION = 32 ,
4949 RBS_AST_RUBY_ANNOTATIONS_METHOD_TYPES_ANNOTATION = 33 ,
5050 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_STRING = 37 ,
54- RBS_AST_TYPE_PARAM = 38 ,
55- RBS_METHOD_TYPE = 39 ,
56- RBS_NAMESPACE = 40 ,
57- RBS_SIGNATURE = 41 ,
58- RBS_TYPE_NAME = 42 ,
59- RBS_TYPES_ALIAS = 43 ,
60- RBS_TYPES_BASES_ANY = 44 ,
61- RBS_TYPES_BASES_BOOL = 45 ,
62- RBS_TYPES_BASES_BOTTOM = 46 ,
63- RBS_TYPES_BASES_CLASS = 47 ,
64- RBS_TYPES_BASES_INSTANCE = 48 ,
65- RBS_TYPES_BASES_NIL = 49 ,
66- RBS_TYPES_BASES_SELF = 50 ,
67- RBS_TYPES_BASES_TOP = 51 ,
68- RBS_TYPES_BASES_VOID = 52 ,
69- RBS_TYPES_BLOCK = 53 ,
70- RBS_TYPES_CLASS_INSTANCE = 54 ,
71- RBS_TYPES_CLASS_SINGLETON = 55 ,
72- RBS_TYPES_FUNCTION = 56 ,
73- RBS_TYPES_FUNCTION_PARAM = 57 ,
74- RBS_TYPES_INTERFACE = 58 ,
75- RBS_TYPES_INTERSECTION = 59 ,
76- RBS_TYPES_LITERAL = 60 ,
77- RBS_TYPES_OPTIONAL = 61 ,
78- RBS_TYPES_PROC = 62 ,
79- RBS_TYPES_RECORD = 63 ,
80- RBS_TYPES_RECORD_FIELD_TYPE = 64 ,
81- RBS_TYPES_TUPLE = 65 ,
82- RBS_TYPES_UNION = 66 ,
83- RBS_TYPES_UNTYPED_FUNCTION = 67 ,
84- RBS_TYPES_VARIABLE = 68 ,
51+ RBS_AST_RUBY_ANNOTATIONS_PARAM_TYPE_ANNOTATION = 35 ,
52+ RBS_AST_RUBY_ANNOTATIONS_RETURN_TYPE_ANNOTATION = 36 ,
53+ RBS_AST_RUBY_ANNOTATIONS_SKIP_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 ,
8586 RBS_KEYWORD ,
8687 RBS_AST_SYMBOL ,
8788};
@@ -420,6 +421,16 @@ typedef struct rbs_ast_ruby_annotations_node_type_assertion {
420421 struct rbs_node * type ;
421422} rbs_ast_ruby_annotations_node_type_assertion_t ;
422423
424+ typedef struct rbs_ast_ruby_annotations_param_type_annotation {
425+ rbs_node_t base ;
426+
427+ struct rbs_location * prefix_location ;
428+ struct rbs_location * name_location ;
429+ struct rbs_location * colon_location ;
430+ struct rbs_node * param_type ;
431+ struct rbs_location * comment_location ;
432+ } rbs_ast_ruby_annotations_param_type_annotation_t ;
433+
423434typedef struct rbs_ast_ruby_annotations_return_type_annotation {
424435 rbs_node_t base ;
425436
@@ -655,6 +666,7 @@ typedef union rbs_ast_ruby_annotations {
655666 rbs_ast_ruby_annotations_node_type_assertion_t node_type_assertion ;
656667 rbs_ast_ruby_annotations_return_type_annotation_t return_type_annotation ;
657668 rbs_ast_ruby_annotations_skip_annotation_t skip_annotation ;
669+ rbs_ast_ruby_annotations_param_type_annotation_t param_type_annotation ;
658670} rbs_ast_ruby_annotations_t ;
659671
660672/// `rbs_keyword_t` models RBS keywords like "private", "instance", "covariant", etc.
@@ -710,6 +722,7 @@ rbs_ast_members_public_t *rbs_ast_members_public_new(rbs_allocator_t *allocator,
710722rbs_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 );
711723rbs_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 );
712724rbs_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 );
725+ rbs_ast_ruby_annotations_param_type_annotation_t * rbs_ast_ruby_annotations_param_type_annotation_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_location_t * name_location , rbs_location_t * colon_location , rbs_node_t * param_type , rbs_location_t * comment_location );
713726rbs_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 );
714727rbs_ast_ruby_annotations_skip_annotation_t * rbs_ast_ruby_annotations_skip_annotation_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_location_t * prefix_location , rbs_location_t * skip_location , rbs_location_t * comment_location );
715728rbs_ast_string_t * rbs_ast_string_new (rbs_allocator_t * allocator , rbs_location_t * location , rbs_string_t string );
0 commit comments