Home | History | Annotate | Download | only in scripts

Lines Matching defs:Output

641 class Output:
656 def RunAtomicCode(env, node, output):
659 result = Output()
678 RunCode(new_env, node.code, output)
680 output.Append(sep)
682 output.Append(node.raw_code.value)
686 RunCode(env.Clone(), node.then_branch, output)
688 RunCode(env.Clone(), node.else_branch, output)
691 output.Append('%s' % (value,))
693 output.Append('$')
695 RunCode(env.Clone(), node, output)
702 def RunCode(env, code_node, output):
704 RunAtomicCode(env, atomic_code, output)
717 def WrapComment(line, output):
723 output.append(before_comment)
735 output.append(prefix + cur_line.rstrip())
738 output.append(prefix + cur_line.strip())
741 def WrapCode(line, line_concat, output):
755 output.append(prefix + seg[:split_at].strip() + line_concat)
763 output.append(prefix + cur_line.rstrip() + line_concat)
768 output.append(prefix + cur_line.strip())
771 def WrapPreprocessorDirective(line, output):
772 WrapCode(line, ' \\', output)
775 def WrapPlainCode(line, output):
776 WrapCode(line, '', output)
790 def WrapLongLine(line, output):
793 output.append(line)
798 output.append(line)
800 WrapComment(line, output)
801 elif IsInPreprocessorDirective(output, line):
805 output.append(line)
807 WrapPreprocessorDirective(line, output)
809 output.append(line)
811 WrapPlainCode(line, output)
816 output = []
818 WrapLongLine(line, output)
819 output2 = [line.rstrip() for line in output]
826 output = Output()
827 RunCode(Env(), ast, output)
828 return BeautifyCode(output.string)