MOD: update test cases
This commit is contained in:
parent
f5935e2b40
commit
978c89dccf
|
@ -485,7 +485,7 @@ module.exports = grammar(C, {
|
||||||
field('return_type', optional($._method_argument_type_specifier)),
|
field('return_type', optional($._method_argument_type_specifier)),
|
||||||
field('selector', $._method_selector),
|
field('selector', $._method_selector),
|
||||||
optional($.attribute_specifier),
|
optional($.attribute_specifier),
|
||||||
optional(';'),
|
optional(';'), // compatible with: - (void)method; {}
|
||||||
field('body', $.compound_statement),
|
field('body', $.compound_statement),
|
||||||
optional(';'),
|
optional(';'),
|
||||||
),
|
),
|
||||||
|
@ -498,12 +498,12 @@ module.exports = grammar(C, {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
_unary_selector: $ => $.identifier, // naming
|
_unary_selector: $ => $.identifier,
|
||||||
|
|
||||||
keyword_selector: $ => repeat1($.keyword_declarator),
|
keyword_selector: $ => repeat1($.keyword_declarator),
|
||||||
|
|
||||||
keyword_declarator: $ => prec.right(seq(
|
keyword_declarator: $ => prec.right(seq(
|
||||||
field('keyword', optional($.identifier)), // naming
|
field('keyword', optional($.identifier)),
|
||||||
':',
|
':',
|
||||||
field('type', optional($._method_argument_type_specifier)),
|
field('type', optional($._method_argument_type_specifier)),
|
||||||
$._name,
|
$._name,
|
||||||
|
|
|
@ -10058,17 +10058,8 @@
|
||||||
"value": "BOOL"
|
"value": "BOOL"
|
||||||
},
|
},
|
||||||
"auto": {
|
"auto": {
|
||||||
"type": "CHOICE",
|
"type": "STRING",
|
||||||
"members": [
|
"value": "__auto_type"
|
||||||
{
|
|
||||||
"type": "STRING",
|
|
||||||
"value": "auto"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "STRING",
|
|
||||||
"value": "__auto_type"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"autoreleasepool_statement": {
|
"autoreleasepool_statement": {
|
||||||
"type": "PREC_RIGHT",
|
"type": "PREC_RIGHT",
|
||||||
|
|
|
@ -825,7 +825,7 @@ Blocks: as a instance variable
|
||||||
parameters: (parameter_list)))))
|
parameters: (parameter_list)))))
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
Blocks: unknown [FIXME]
|
Blocks: unknown
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
extern void use(id);
|
extern void use(id);
|
||||||
|
|
|
@ -457,14 +457,14 @@ Struct
|
||||||
struct unarchive_list {
|
struct unarchive_list {
|
||||||
int ifield;
|
int ifield;
|
||||||
id *list;
|
id *list;
|
||||||
}; // FIXME
|
};
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
struct type_s {
|
struct type_s {
|
||||||
SS may_recurse;
|
SS may_recurse;
|
||||||
id id_val;
|
id id_val;
|
||||||
};
|
}; // FIXME
|
||||||
|
|
||||||
struct Derived : type_s { };
|
struct Derived : type_s { };
|
||||||
|
|
||||||
|
@ -484,8 +484,7 @@ struct Derived : type_s { };
|
||||||
type: (id)
|
type: (id)
|
||||||
declarator: (pointer_declarator
|
declarator: (pointer_declarator
|
||||||
declarator: (field_identifier)))))
|
declarator: (field_identifier)))))
|
||||||
declarator: (MISSING identifier))
|
declarator: (MISSING identifier)))
|
||||||
(comment))
|
|
||||||
(struct_specifier
|
(struct_specifier
|
||||||
name: (type_identifier)
|
name: (type_identifier)
|
||||||
body: (field_declaration_list
|
body: (field_declaration_list
|
||||||
|
@ -495,6 +494,7 @@ struct Derived : type_s { };
|
||||||
(field_declaration
|
(field_declaration
|
||||||
type: (id)
|
type: (id)
|
||||||
declarator: (field_identifier))))
|
declarator: (field_identifier))))
|
||||||
|
(comment)
|
||||||
(struct_specifier
|
(struct_specifier
|
||||||
name: (type_identifier)
|
name: (type_identifier)
|
||||||
(superclass_reference
|
(superclass_reference
|
||||||
|
|
Loading…
Reference in New Issue