Sha256: 2adbe635d8c6973e26b96b6c575f9165899658c3fcf953e9dfca717c33cce847
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 Bytes
Contents
# Handles the Init_Libname() method class YARD::Handlers::C::InitHandler < YARD::Handlers::C::Base MATCH = %r{\A\s*(?:static\s+)?void\s+[Ii]nit_(\w+)\s*} handles MATCH statement_class ToplevelStatement process do parse_block ns = namespace_for_variable(statement.declaration[MATCH, 1]) if ns.is_a?(YARD::CodeObjects::NamespaceObject) && ns.docstring.blank? if statement.comments register_docstring(ns, statement.comments.source, statement) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems