docvim-0.3.1.3: Documentation generator for Vim plug-ins

Safe HaskellNone
LanguageHaskell2010

Text.Docvim.Visitor.Functions

Synopsis

Documentation

extractFunctions :: Alternative f => [Node] -> (f [Node], [Node]) Source #

Extracts a list of nodes (if any exist) from the `@functions` section(s) of the source code.

It is not recommended to have multiple `@functions` sections in a project. If multiple such sections (potentially across multiple translation units) exist, there are no guarantees about order; they just get concatenated in the order we see them.