Lines Matching defs:printer
27 type printer struct { struct
28 defs []Definition
29 comments []*CommentGroup
31 curComment int
33 pos scanner.Position
35 pendingSpace bool
36 pendingNewline int
38 output []byte
40 indentList []int
41 wsBuf []byte
43 skippedComments []*CommentGroup
79 func (p *printer) Print() ([]byte, error) {
87 func (p *printer) printDef(def Definition) {
97 func (p *printer) printAssignment(assignment *Assignment) {
106 func (p *printer) printModule(module *Module) {
112 func (p *printer) printExpression(value Expression) {
139 func (p *printer) printList(list []Expression, pos, endPos scanner.Position) {
159 func (p *printer) printMap(m *Map) {
175 func (p *printer) printOperator(operator *Operator) {
179 func (p *printer) printOperatorInternal(operator *Operator, allowIndent bool) {
206 func (p *printer) printProperty(property *Property) {
215 func (p *printer) printToken(s string, pos scanner.Position) {
237 func (p *printer) printInLineCommentsBefore(pos scanner.Position) {
252 func (p *printer) printEndOfLineCommentsBefore(pos scanner.Position) {
270 func (p *printer) requestNewlinesForPos(pos scanner.Position) bool {
282 func (p *printer) requestSpace() {
288 func (p *printer) _requestNewline() {
296 func (p *printer) requestNewline() {
305 func (p *printer) requestDoubleNewline() {
311 func (p *printer) flushSpace() {
327 func (p *printer) printComment(cg *CommentGroup) {
350 func (p *printer) flush() {
365 func (p *printer) pad(l int) {
375 func (p *printer) indent(i int) {
379 func (p *printer) unindent(pos scanner.Position) {
384 func (p *printer) curIndent() int {