@classmethod<EOL><INDENT>def merge(cls, source_blocks):<DEDENT>
if len(source_blocks) == <NUM_LIT:1>:<EOL><INDENT>return source_blocks[<NUM_LIT:0>]<EOL><DEDENT>source_blocks.sort(key=operator.attrgetter('<STR_LIT>'))<EOL>main_block = source_blocks[<NUM_LIT:0>]<EOL>boot_lines = main_block.boot_lines<EOL>source_lines = [source_line for source_block in source_blocks for source_line in source_block.source_lines]<EOL>return cls(boot_lines, source_lines, directive=main_block.directive,<EOL>language=main_block.language, roles=main_block.roles)<EOL>
Merge multiple SourceBlocks together