We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9415cb2 + c564c94 commit 263fc5cCopy full SHA for 263fc5c
lib/ruby_header_parser/parser.rb
@@ -93,8 +93,11 @@ def extract_type_definitions
93
def extract_enum_definitions
94
stdout = execute_ctags("--c-kinds=e --fields=+n")
95
96
+ # Workaround for Ruby::UnannotatedEmptyCollection on steep 1.9.0+
97
+ name_to_definition = {} #: Hash[String, RubyHeaderParser::EnumDefinition] # rubocop:disable Layout/LeadingCommentSpace
98
+
99
name_to_definitions =
- stdout.each_line.with_object({}) do |line, hash|
100
+ stdout.each_line.with_object(name_to_definition) do |line, hash|
101
parts = line.split("\t")
102
103
enum_name = Util.find_field(parts, "enum")
0 commit comments