Lines Matching defs:Output
634 class Output:
649 def RunAtomicCode(env, node, output):
652 result = Output()
671 RunCode(new_env, node.code, output)
673 output.Append(sep)
675 output.Append(node.raw_code.value)
679 RunCode(env.Clone(), node.then_branch, output)
681 RunCode(env.Clone(), node.else_branch, output)
684 output.Append('%s' % (value,))
686 output.Append('$')
688 RunCode(env.Clone(), node, output)
695 def RunCode(env, code_node, output):
697 RunAtomicCode(env, atomic_code, output)
710 def WrapComment(line, output):
716 output.append(before_comment)
728 output.append(prefix + cur_line.rstrip())
731 output.append(prefix + cur_line.strip())
734 def WrapCode(line, line_concat, output):
748 output.append(prefix + seg[:split_at].strip() + line_concat)
756 output.append(prefix + cur_line.rstrip() + line_concat)
761 output.append(prefix + cur_line.strip())
764 def WrapPreprocessorDirevative(line, output):
765 WrapCode(line, ' \\', output)
768 def WrapPlainCode(line, output):
769 WrapCode(line, '', output)
777 def WrapLongLine(line, output):
780 output.append(line)
785 output.append(line)
787 WrapComment(line, output)
788 elif IsInPreprocessorDirevative(output, line):
792 output.append(line)
794 WrapPreprocessorDirevative(line, output)
796 WrapPlainCode(line, output)
801 output = []
803 WrapLongLine(line, output)
804 output2 = [line.rstrip() for line in output]
815 output = Output()
816 RunCode(Env(), ast, output)
817 output_str = BeautifyCode(output.string)