Skip to content

Commit 41081b9

Browse files
committed
Add name field for tf_port_item
1 parent 167e3ed commit 41081b9

File tree

378 files changed

+6189
-6189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+6189
-6189
lines changed

grammar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,8 +1605,8 @@ const rules = {
16051605
choice(
16061606
// A.10.28: In a tf_port_item, it shall be illegal to omit the explicit
16071607
// port_identifier except within a function_prototype or task_prototype.
1608-
seq($.data_type_or_implicit, optional($.port_identifier)),
1609-
$.port_identifier,
1608+
seq($.data_type_or_implicit, optional(field('name', $.port_identifier))),
1609+
field('name', $.port_identifier),
16101610
),
16111611
repeat($._variable_dimension),
16121612
optseq('=', $.expression)

test/corpus/core/assertions/goto_assertion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,12 @@ endmodule
428428
(data_type_or_implicit
429429
(data_type
430430
(integer_atom_type)))
431-
(simple_identifier))
431+
name: (simple_identifier))
432432
(tf_port_item
433433
(data_type_or_implicit
434434
(data_type
435435
(integer_atom_type)))
436-
(simple_identifier)))
436+
name: (simple_identifier)))
437437
(statement_or_null
438438
(statement
439439
(statement_item

test/corpus/core/assertions/implication_assertion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,12 @@ endmodule
357357
(data_type_or_implicit
358358
(data_type
359359
(integer_atom_type)))
360-
(simple_identifier))
360+
name: (simple_identifier))
361361
(tf_port_item
362362
(data_type_or_implicit
363363
(data_type
364364
(integer_atom_type)))
365-
(simple_identifier)))
365+
name: (simple_identifier)))
366366
(statement_or_null
367367
(statement
368368
(statement_item

test/corpus/core/assertions/noncon_assertion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,12 @@ endmodule
544544
(data_type_or_implicit
545545
(data_type
546546
(integer_atom_type)))
547-
(simple_identifier))
547+
name: (simple_identifier))
548548
(tf_port_item
549549
(data_type_or_implicit
550550
(data_type
551551
(integer_atom_type)))
552-
(simple_identifier)))
552+
name: (simple_identifier)))
553553
(statement_or_null
554554
(statement
555555
(statement_item

test/corpus/core/classes/interface_class.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ endclass
3434
(data_type_or_implicit
3535
(data_type
3636
(simple_identifier)))
37-
(simple_identifier))))))
37+
name: (simple_identifier))))))
3838
(interface_class_item
3939
(interface_class_method
4040
(task_prototype
@@ -46,7 +46,7 @@ endclass
4646
(data_type_or_implicit
4747
(data_type
4848
(simple_identifier)))
49-
(simple_identifier))))))
49+
name: (simple_identifier))))))
5050
(interface_class_item
5151
(interface_class_method
5252
(task_prototype
@@ -58,7 +58,7 @@ endclass
5858
(data_type_or_implicit
5959
(data_type
6060
(simple_identifier)))
61-
(simple_identifier))))))
61+
name: (simple_identifier))))))
6262
(interface_class_item
6363
(interface_class_method
6464
(function_prototype
@@ -73,7 +73,7 @@ endclass
7373
(data_type_or_implicit
7474
(data_type
7575
(simple_identifier)))
76-
(simple_identifier))))))
76+
name: (simple_identifier))))))
7777
(interface_class_item
7878
(interface_class_method
7979
(function_prototype
@@ -86,7 +86,7 @@ endclass
8686
(data_type_or_implicit
8787
(data_type
8888
(simple_identifier)))
89-
(simple_identifier))))))
89+
name: (simple_identifier))))))
9090
(interface_class_item
9191
(interface_class_method
9292
(function_prototype
@@ -101,4 +101,4 @@ endclass
101101
(data_type_or_implicit
102102
(data_type
103103
(simple_identifier)))
104-
(simple_identifier))))))))
104+
name: (simple_identifier))))))))

test/corpus/core/classes/interface_class_implementation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ endclass : TLM_channel_base
9090
(data_type_or_implicit
9191
(data_type
9292
(simple_identifier)))
93-
(simple_identifier))))))
93+
name: (simple_identifier))))))
9494
(simple_identifier)))

test/corpus/core/coverage/coverage_class.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ endmodule
823823
(data_type
824824
(simple_identifier)
825825
(simple_identifier)))
826-
(simple_identifier))))
826+
name: (simple_identifier))))
827827
(function_statement_or_null
828828
(function_statement
829829
(statement

test/corpus/core/coverage/generic_coverage.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,19 @@ endmodule
264264
(integral_number
265265
(decimal_number
266266
(unsigned_number))))))))))
267-
(simple_identifier))
267+
name: (simple_identifier))
268268
(tf_port_item
269269
(tf_port_direction
270270
(port_direction))
271271
(data_type_or_implicit
272272
(data_type
273273
(integer_atom_type)))
274-
(simple_identifier))
274+
name: (simple_identifier))
275275
(tf_port_item
276276
(data_type_or_implicit
277277
(data_type
278278
(integer_atom_type)))
279-
(simple_identifier)))
279+
name: (simple_identifier)))
280280
(coverage_event
281281
(clocking_event
282282
(event_expression

test/corpus/core/coverage/simple_coverage.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ endmodule
319319
(integral_number
320320
(decimal_number
321321
(unsigned_number))))))))))
322-
(simple_identifier))
322+
name: (simple_identifier))
323323
(tf_port_item
324324
(tf_port_direction
325325
(port_direction))
@@ -339,11 +339,11 @@ endmodule
339339
(integral_number
340340
(decimal_number
341341
(unsigned_number))))))))))
342-
(simple_identifier))
342+
name: (simple_identifier))
343343
(tf_port_item
344344
(tf_port_direction
345345
(port_direction))
346-
(simple_identifier)))
346+
name: (simple_identifier)))
347347
(statement_or_null
348348
(statement
349349
(statement_item

test/corpus/core/dpi/import.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ import "DPI-C" context function int foo(string bar);
2020
(tf_port_item
2121
(data_type_or_implicit
2222
(data_type))
23-
(simple_identifier)))))))
23+
name: (simple_identifier)))))))

0 commit comments

Comments
 (0)