swh.indexer.ctags module¶
Run ctags on file path with optional language.
- Parameters
path – path to the file
lang – language for that path (optional)
- Yields
dict – ctags’ output
Bases:
swh.indexer.indexer.ContentIndexer
[swh.indexer.storage.model.ContentCtagsRow
]Filter out known sha1s and return only missing ones.
Index sha1s’ content and store result.
- Parameters
id (bytes) – content’s identifier
data (bytes) – raw content in bytes
- Returns
a dict representing a content_mimetype with keys:
id (bytes): content’s identifier (sha1)
ctags ([dict]): ctags list of symbols
- Return type
dict
Persist the results in storage.
- Parameters
results – list of ctags returned by index()