Skip to content

Commit

Permalink
Add name field for tf_port_item
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlarumbe committed Aug 29, 2024
1 parent 167e3ed commit 41081b9
Show file tree
Hide file tree
Showing 378 changed files with 6,189 additions and 6,189 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,8 @@ const rules = {
choice(
// A.10.28: In a tf_port_item, it shall be illegal to omit the explicit
// port_identifier except within a function_prototype or task_prototype.
seq($.data_type_or_implicit, optional($.port_identifier)),
$.port_identifier,
seq($.data_type_or_implicit, optional(field('name', $.port_identifier))),
field('name', $.port_identifier),
),
repeat($._variable_dimension),
optseq('=', $.expression)
Expand Down
4 changes: 2 additions & 2 deletions test/corpus/core/assertions/goto_assertion.txt
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ endmodule
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier)))
name: (simple_identifier)))
(statement_or_null
(statement
(statement_item
Expand Down
4 changes: 2 additions & 2 deletions test/corpus/core/assertions/implication_assertion.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,12 @@ endmodule
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier)))
name: (simple_identifier)))
(statement_or_null
(statement
(statement_item
Expand Down
4 changes: 2 additions & 2 deletions test/corpus/core/assertions/noncon_assertion.txt
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,12 @@ endmodule
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier)))
name: (simple_identifier)))
(statement_or_null
(statement
(statement_item
Expand Down
12 changes: 6 additions & 6 deletions test/corpus/core/classes/interface_class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endclass
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))
name: (simple_identifier))))))
(interface_class_item
(interface_class_method
(task_prototype
Expand All @@ -46,7 +46,7 @@ endclass
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))
name: (simple_identifier))))))
(interface_class_item
(interface_class_method
(task_prototype
Expand All @@ -58,7 +58,7 @@ endclass
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))
name: (simple_identifier))))))
(interface_class_item
(interface_class_method
(function_prototype
Expand All @@ -73,7 +73,7 @@ endclass
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))
name: (simple_identifier))))))
(interface_class_item
(interface_class_method
(function_prototype
Expand All @@ -86,7 +86,7 @@ endclass
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))
name: (simple_identifier))))))
(interface_class_item
(interface_class_method
(function_prototype
Expand All @@ -101,4 +101,4 @@ endclass
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))))
name: (simple_identifier))))))))
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ endclass : TLM_channel_base
(data_type_or_implicit
(data_type
(simple_identifier)))
(simple_identifier))))))
name: (simple_identifier))))))
(simple_identifier)))
2 changes: 1 addition & 1 deletion test/corpus/core/coverage/coverage_class.txt
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ endmodule
(data_type
(simple_identifier)
(simple_identifier)))
(simple_identifier))))
name: (simple_identifier))))
(function_statement_or_null
(function_statement
(statement
Expand Down
6 changes: 3 additions & 3 deletions test/corpus/core/coverage/generic_coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,19 +264,19 @@ endmodule
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(tf_port_direction
(port_direction))
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier)))
name: (simple_identifier)))
(coverage_event
(clocking_event
(event_expression
Expand Down
6 changes: 3 additions & 3 deletions test/corpus/core/coverage/simple_coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ endmodule
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(tf_port_direction
(port_direction))
Expand All @@ -339,11 +339,11 @@ endmodule
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(tf_port_direction
(port_direction))
(simple_identifier)))
name: (simple_identifier)))
(statement_or_null
(statement
(statement_item
Expand Down
2 changes: 1 addition & 1 deletion test/corpus/core/dpi/import.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ import "DPI-C" context function int foo(string bar);
(tf_port_item
(data_type_or_implicit
(data_type))
(simple_identifier)))))))
name: (simple_identifier)))))))
28 changes: 14 additions & 14 deletions test/corpus/core/dpi/import_export_in_module.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ endmodule
(port_direction))
(data_type_or_implicit
(data_type))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
(dpi_function_proto
Expand Down Expand Up @@ -72,7 +72,7 @@ endmodule
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier)
name: (simple_identifier)
(unsized_dimension))))))
(dpi_import_export
(dpi_spec_string)
Expand Down Expand Up @@ -102,7 +102,7 @@ endmodule
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier)
name: (simple_identifier)
(unsized_dimension))))))
(dpi_import_export
(dpi_spec_string)
Expand All @@ -115,22 +115,22 @@ endmodule
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
(dpi_function_proto
Expand All @@ -142,22 +142,22 @@ endmodule
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
(dpi_function_proto
Expand All @@ -169,7 +169,7 @@ endmodule
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
(dpi_function_proto
Expand Down Expand Up @@ -205,7 +205,7 @@ endmodule
(data_type_or_implicit
(data_type
(non_integer_type)))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
(dpi_function_import_property)
Expand All @@ -222,7 +222,7 @@ endmodule
(data_type_or_implicit
(data_type
(non_integer_type)))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
c_name: (c_identifier)
Expand Down
4 changes: 2 additions & 2 deletions test/corpus/core/dpi/import_export_unit_space.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "DPI" context function string fnb (input string str1);
(port_direction))
(data_type_or_implicit
(data_type))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
c_name: (c_identifier)
Expand All @@ -41,4 +41,4 @@ import "DPI" context function string fnb (input string str1);
(port_direction))
(data_type_or_implicit
(data_type))
(simple_identifier)))))))
name: (simple_identifier)))))))
22 changes: 11 additions & 11 deletions test/corpus/core/dpi/lrm_35_5_4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(data_type_or_implicit
(data_type
(integer_atom_type)))
(simple_identifier))))))
name: (simple_identifier))))))
(comment)
(dpi_import_export
(dpi_spec_string)
Expand All @@ -71,7 +71,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(tf_port_item
(data_type_or_implicit
(data_type))
(simple_identifier))))))
name: (simple_identifier))))))
(comment)
(comment)
(dpi_import_export
Expand All @@ -87,7 +87,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(port_direction))
(data_type_or_implicit
(data_type))
(simple_identifier))))))
name: (simple_identifier))))))
(comment)
(comment)
(comment)
Expand All @@ -105,7 +105,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(port_direction))
(data_type_or_implicit
(data_type))
(simple_identifier)
name: (simple_identifier)
(expression
(primary)))))))
(dpi_import_export
Expand Down Expand Up @@ -144,11 +144,11 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(tf_port_item
(data_type_or_implicit
(data_type))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type))
(simple_identifier))))))
name: (simple_identifier))))))
(dpi_import_export
(dpi_spec_string)
(dpi_function_proto
Expand All @@ -160,7 +160,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(tf_port_item
(data_type_or_implicit
(data_type))
(simple_identifier))))))
name: (simple_identifier))))))
(comment)
(dpi_import_export
(dpi_spec_string)
Expand Down Expand Up @@ -195,7 +195,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(tf_port_item
(data_type_or_implicit
(data_type))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(tf_port_direction
(port_direction))
Expand All @@ -216,7 +216,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier)
name: (simple_identifier)
(unpacked_dimension
(constant_range
(constant_expression
Expand All @@ -242,7 +242,7 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(port_direction))
(data_type_or_implicit
(data_type))
(simple_identifier))
name: (simple_identifier))
(tf_port_item
(data_type_or_implicit
(data_type
Expand All @@ -261,4 +261,4 @@ import "DPI-C" task checkResults(input string s, bit [511:0] packet);
(integral_number
(decimal_number
(unsigned_number))))))))))
(simple_identifier)))))))
name: (simple_identifier)))))))
Loading

0 comments on commit 41081b9

Please sign in to comment.