janus.language.combine#
Attributes#
Classes#
Combine files that have been split into functional blocks back into |
|
Combine files that have been split into functional blocks back into |
|
Combine files that have been split into functional blocks back into |
|
Combine files that have been split into functional blocks back into |
Module Contents#
- janus.language.combine.log#
- class janus.language.combine.Combiner(language='python')#
Bases:
janus.language.file.FileManager
Combine files that have been split into functional blocks back into a single file.
Initialize a FileManager instance.
- Parameters:
language (str) – The name of the language to manage.
- static combine(root)#
Combine the given block with its children.
- Parameters:
root (janus.language.block.CodeBlock) – The functional code block to combine with its children.
- Return type:
None
- static combine_children(block)#
Recursively combine block code with children code.
- Parameters:
block (janus.language.block.CodeBlock) – The functional code block to recursively replace children.
- Return type:
None
- class janus.language.combine.JsonCombiner(language='python')#
Bases:
Combiner
Combine files that have been split into functional blocks back into a single file.
Initialize a FileManager instance.
- Parameters:
language (str) – The name of the language to manage.
- static combine(root)#
Combine the given block with its children.
- Parameters:
root (janus.language.block.CodeBlock) – The functional code block to combine with its children.
- Return type:
None
- class janus.language.combine.ChunkCombiner(language='python')#
Bases:
Combiner
Combine files that have been split into functional blocks back into a single file.
Initialize a FileManager instance.
- Parameters:
language (str) – The name of the language to manage.
- static combine(root)#
A combiner which doesn’t actually combine the code blocks, instead preserving children
- Parameters:
root (janus.language.block.CodeBlock) – The functional code block to combine with its children.
- Return type:
None
- class janus.language.combine.PartitionCombiner(language='python')#
Bases:
Combiner
Combine files that have been split into functional blocks back into a single file.
Initialize a FileManager instance.
- Parameters:
language (str) – The name of the language to manage.
- static combine(root)#
A combiner which inserts partition tags between code blocks
- Parameters:
root (janus.language.block.CodeBlock) –
- Return type:
None