DSMSourceMap¶
- class dsviper.DSMSourceMap¶
Bases:
objectA source-map collected while parsing DSM: the exact source spans of every namespace, type declaration (concept, struct, enum, club, attachment), field, case, resolved type-reference and type sub-expression. Function pools are not mapped.
Create an empty one and pass it to DSMBuilder.parse(source_map=…) to fill it.
- cases() list[DSMSourceCase]¶
Return the list of DSMSourceCase (enumeration cases).
- declarations() list[DSMSourceDeclaration]¶
Return the list of DSMSourceDeclaration (concept / struct / enum / club / attachment).
- fields() list[DSMSourceField]¶
Return the list of DSMSourceField (struct fields).
- name_spaces() list[DSMSourceNameSpace]¶
Return the list of DSMSourceNameSpace (namespace headers).
- references() list[DSMSourceReference]¶
Return the list of DSMSourceReference (every resolved type-reference site).
A primitive type is a site too: its referent is in the empty namespace and names no declaration.
- types() list[DSMSourceType]¶
Return the list of DSMSourceType (every type sub-expression occurrence).