Sha256: 41be83bceab7ec6b0ec5ccfccb80e72e96b7d6133e0835f11dc3eaba10327273
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true # Handles the Init_Libname() method class YARD::Handlers::C::InitHandler < YARD::Handlers::C::Base MATCH = /\A\s*(?:\S+\s+)*void\s+(?:[Ii]nit_)?(\w+)\s*/ handles MATCH statement_class ToplevelStatement process do parse_block decl = statement.declaration[MATCH, 1] if decl ns = namespace_for_variable(decl) if ns.is_a?(YARD::CodeObjects::NamespaceObject) && ns.docstring.blank? if statement.comments register_docstring(ns, statement.comments.source, statement) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yard-0.9.18 | lib/yard/handlers/c/init_handler.rb |
yard-0.9.17 | lib/yard/handlers/c/init_handler.rb |