Remove duplicate entry_declaration rule.
This commit is contained in:
parent
6c3dc1f0ae
commit
5417b9ffc7
15
grammar.js
15
grammar.js
|
|
@ -1371,7 +1371,7 @@ module.exports = grammar({
|
|||
$._discrete_subtype_definition,
|
||||
')',
|
||||
)),
|
||||
optional($.formal_part),
|
||||
field('parameter_profile', optional($.formal_part)),
|
||||
optional($.aspect_specification),
|
||||
';',
|
||||
),
|
||||
|
|
@ -1815,19 +1815,6 @@ module.exports = grammar({
|
|||
)),
|
||||
';',
|
||||
),
|
||||
entry_declaration: $ => seq(
|
||||
optional($.overriding_indicator),
|
||||
reservedWord('entry'),
|
||||
$.identifier,
|
||||
optional(seq(
|
||||
'(',
|
||||
$._discrete_subtype_definition,
|
||||
')',
|
||||
)),
|
||||
field('parameter_profile', optional($.formal_part)),
|
||||
optional($.aspect_specification),
|
||||
';',
|
||||
),
|
||||
_task_item: $ => choice(
|
||||
$.entry_declaration,
|
||||
$._aspect_clause,
|
||||
|
|
|
|||
|
|
@ -8008,8 +8008,12 @@
|
|||
"value": "entry"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "identifier"
|
||||
"type": "FIELD",
|
||||
"name": "entry_name",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "CHOICE",
|
||||
|
|
|
|||
|
|
@ -3056,6 +3056,16 @@
|
|||
"type": "entry_declaration",
|
||||
"named": true,
|
||||
"fields": {
|
||||
"entry_name": {
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "identifier",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameter_profile": {
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
|
|
@ -3127,7 +3137,7 @@
|
|||
},
|
||||
"children": {
|
||||
"multiple": true,
|
||||
"required": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
"type": "aspect_specification",
|
||||
|
|
@ -3145,10 +3155,6 @@
|
|||
"type": "discriminant_constraint",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "identifier",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "index_constraint",
|
||||
"named": true
|
||||
|
|
|
|||
65834
src/parser.c
65834
src/parser.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user