modulefdoc_project
The whole project: loads and parses the files, merges them into one list of entities, and connects the entities with each other.
graph TD A["load_project_sources: one list of entities"] --> B B["correlate: modules from elsewhere, use statements, public names, inheritance"] --> C C["link_project: implementations, calls, bindings, submodules"] --> D D["prune: hide what is not displayed, but keep what a shown binding binds to, and bodies of shown interfaces"]
Hiding comes last, so that names can still be found in what will not be shown.
Uses
- json_module
- fdoc_util
- fdoc_model
- fdoc_settings
- ffmt_fs
- fdoc_input
- fdoc_progress
- fdoc_parser
- fdoc_shell
- fdoc_urls
Used by
Types
project_t
The parsed project.
symbol_list_tprivate
Names, in the order they were added, with an index.
symbol_t
An entity under the name it is known by in some scope.
symbols_tprivate
The names a module makes public, by category.
Functions
copy_bindingprivate
Add to type id a copy of generic binding item, returning the copy.
find_inpureprivate
The position of name in symbols, or 0.
find_moduleprivate
The position in p%modules of the module named name, or 0.
find_symbolrecursive
What name means in scope scope for category category (see in_category), or 0.
in_categorypureprivate
True if entity e declares a name of category category: 1 procedures, 2 abstract interfaces,
3 types, 4 variables.
is_program_unitpureprivate
True if entities of kind are program units. The permission of a module is what its members get
by default, so display says nothing about whether the module itself is shown.
module_positionpureprivate
The position in p%modules of module entity id, or 0.
overridesprivate
True if type id declares a binding named name itself.
public_symbolpureprivate
The public entity of module which named name in category category, or 0.
public_symbols
The public names of module which in a category: 1 procedures, 2 abstract interfaces, 3 types,
4 variables.
Subroutines
add_external_modulesprivate
Add modules documented elsewhere: extra_mods, and the modules.json of external projects.
add_symbolprivate
Add name for entity id to list, replacing any entity it has.
correlate
Connect entities across files: the public names of each module, and what types inherit.
generic_bodiesprivate
Add the public bodies of the generic interfaces of module id.
import_namesprivate
Add to module which what it makes public of what use with spec imports from module used.
inheritrecursiveprivate
Work out what type id inherits, after its parent type.
link_usesprivate
Find the modules that use statements and submodules refer to.
load_external_projectprivate
Add the modules in the modules.json of an external project at url, a path or a web address.
load_project_sources
Find, load and parse the source files, and merge the results into p.
merge_listprivate
Move the entities of from to the end of p%list, adjusting their indices.
merge_separate_proceduresprivate
Make one entity of each separate module procedure whose interface is shown on a page of its own: its
body is hidden, and what the body has that the interface doesn't, its calls, use statements and
state, goes to the interface. Calls to any hidden body go to its interface.
public_namesrecursiveprivate
Compute the public names of module which, after those of the modules it uses.
read_externalrecursiveprivate
Add the entity described by node of an external modules.json, with those inside it.
read_sourceprivate
Read source file path, warning if that fails.
read_use_specprivate
Read what follows the module name in a use statement.
reveal_bound_proceduresprivate
Show the procedures that shown bindings bind to, even if they are private: whoever can see the type can call them through it.
set_constructorprivate
Give a procedure or interface named like type id, its constructor, the type's permission.