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,
|
$._discrete_subtype_definition,
|
||||||
')',
|
')',
|
||||||
)),
|
)),
|
||||||
optional($.formal_part),
|
field('parameter_profile', optional($.formal_part)),
|
||||||
optional($.aspect_specification),
|
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(
|
_task_item: $ => choice(
|
||||||
$.entry_declaration,
|
$.entry_declaration,
|
||||||
$._aspect_clause,
|
$._aspect_clause,
|
||||||
|
|
|
||||||
|
|
@ -8008,8 +8008,12 @@
|
||||||
"value": "entry"
|
"value": "entry"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"type": "FIELD",
|
||||||
|
"name": "entry_name",
|
||||||
|
"content": {
|
||||||
"type": "SYMBOL",
|
"type": "SYMBOL",
|
||||||
"name": "identifier"
|
"name": "identifier"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "CHOICE",
|
"type": "CHOICE",
|
||||||
|
|
|
||||||
|
|
@ -3056,6 +3056,16 @@
|
||||||
"type": "entry_declaration",
|
"type": "entry_declaration",
|
||||||
"named": true,
|
"named": true,
|
||||||
"fields": {
|
"fields": {
|
||||||
|
"entry_name": {
|
||||||
|
"multiple": false,
|
||||||
|
"required": true,
|
||||||
|
"types": [
|
||||||
|
{
|
||||||
|
"type": "identifier",
|
||||||
|
"named": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"parameter_profile": {
|
"parameter_profile": {
|
||||||
"multiple": false,
|
"multiple": false,
|
||||||
"required": false,
|
"required": false,
|
||||||
|
|
@ -3127,7 +3137,7 @@
|
||||||
},
|
},
|
||||||
"children": {
|
"children": {
|
||||||
"multiple": true,
|
"multiple": true,
|
||||||
"required": true,
|
"required": false,
|
||||||
"types": [
|
"types": [
|
||||||
{
|
{
|
||||||
"type": "aspect_specification",
|
"type": "aspect_specification",
|
||||||
|
|
@ -3145,10 +3155,6 @@
|
||||||
"type": "discriminant_constraint",
|
"type": "discriminant_constraint",
|
||||||
"named": true
|
"named": true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "identifier",
|
|
||||||
"named": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "index_constraint",
|
"type": "index_constraint",
|
||||||
"named": true
|
"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