Lines Matching full:append

51     append('\n');  in printLine()
57 append('\n'); in printLine()
59 append(line).append('\n'); in printLine()
63 Pretty append(char c) { in append() method in Pretty
67 sb.append(Strings.repeat(" ", indent * 2)); in append()
70 sb.append(c); in append()
74 Pretty append(String s) { in append() method in Pretty
76 sb.append(Strings.repeat(" ", indent * 2)); in append()
79 sb.append(s); in append()
85 sb.append(ident.value()); in visitIdent()
92 append('?'); in visitWildTy()
94 append(" super "); in visitWildTy()
98 append(" extends "); in visitWildTy()
108 append(' '); in visitArrTy()
111 append("[]"); in visitArrTy()
117 append(primTy.tykind().toString()); in visitPrimTy()
123 append("void"); in visitVoidTy()
131 append('.'); in visitClassTy()
134 append(classTy.name().value()); in visitClassTy()
136 append('<'); in visitClassTy()
140 append(", "); in visitClassTy()
145 append('>'); in visitClassTy()
152 append(literal.value().toString()); in visitLiteral()
158 append('('); in visitTypeCast()
160 append(") "); in visitTypeCast()
171 append(unary.op().toString()); in visitUnary()
179 append(unary.op().toString()); in visitUnary()
190 append('('); in visitBinary()
192 append(" " + binary.op() + " "); in visitBinary()
194 append(')'); in visitBinary()
200 append(Joiner.on('.').join(constVarName.name())); in visitConstVarName()
207 append(".class"); in visitClassLiteral()
213 append(assign.name().value()).append(" = "); in visitAssign()
220 append("("); in visitConditional()
222 append(" ? "); in visitConditional()
224 append(" : "); in visitConditional()
226 append(")"); in visitConditional()
232 append('{'); in visitArrayInit()
236 append(", "); in visitArrayInit()
241 append('}'); in visitArrayInit()
267 append("import "); in visitImportDecl()
269 append("static "); in visitImportDecl()
271 append(Joiner.on('.').join(importDecl.type())); in visitImportDecl()
273 append(".*"); in visitImportDecl()
275 append(";").append('\n'); in visitImportDecl()
282 append(';'); in visitVarDecl()
290 append(' ').append(varDecl.name().value()); in printVarDecl()
292 append(" = "); in printVarDecl()
300 append(' '); in printAnnos()
312 append('<'); in visitMethDecl()
316 append(", "); in visitMethDecl()
321 append('>'); in visitMethDecl()
322 append(' '); in visitMethDecl()
326 append(' '); in visitMethDecl()
328 append(methDecl.name().value()); in visitMethDecl()
329 append('('); in visitMethDecl()
333 append(", "); in visitMethDecl()
338 append(')'); in visitMethDecl()
340 append(" throws "); in visitMethDecl()
344 append(", "); in visitMethDecl()
351 append(" default "); in visitMethDecl()
353 append(";"); in visitMethDecl()
356 append(";"); in visitMethDecl()
358 append(" {}"); in visitMethDecl()
365 append('@'); in visitAnno()
366 append(Joiner.on('.').join(anno.name())); in visitAnno()
368 append('('); in visitAnno()
372 append(", "); in visitAnno()
377 append(')'); in visitAnno()
391 append("class"); in visitTyDecl()
394 append("interface"); in visitTyDecl()
397 append("enum"); in visitTyDecl()
400 append("@interface"); in visitTyDecl()
403 append(' ').append(tyDecl.name().value()); in visitTyDecl()
405 append('<'); in visitTyDecl()
409 append(", "); in visitTyDecl()
414 append('>'); in visitTyDecl()
417 append(" extends "); in visitTyDecl()
421 append(" implements "); in visitTyDecl()
425 append(", "); in visitTyDecl()
431 append(" {").append('\n'); in visitTyDecl()
441 append(decl.name().value()).append(',').append('\n'); in visitTyDecl()
494 append(mod.toString()).append(' '); in printModifiers()
511 append(tyParam.name().value()); in visitTyParam()
513 append(" extends "); in visitTyParam()
517 append(" & "); in visitTyParam()
532 append("package ").append(Joiner.on('.').join(pkgDecl.name())).append(';'); in visitPkgDecl()
543 append("open "); in visitModDecl()
545 append("module ").append(modDecl.moduleName()).append(" {"); in visitModDecl()
547 append('\n'); in visitModDecl()
552 append("}\n"); in visitModDecl()
558 append("requires "); in visitModRequires()
560 append(modRequires.moduleName()); in visitModRequires()
561 append(";"); in visitModRequires()
562 append('\n'); in visitModRequires()
568 append("exports "); in visitModExports()
569 append(modExports.packageName().replace('/', '.')); in visitModExports()
571 append(" to").append('\n'); in visitModExports()
576 append(',').append('\n'); in visitModExports()
578 append(moduleName); in visitModExports()
583 append(";"); in visitModExports()
584 append('\n'); in visitModExports()
590 append("opens "); in visitModOpens()
591 append(modOpens.packageName().replace('/', '.')); in visitModOpens()
593 append(" to").append('\n'); in visitModOpens()
598 append(',').append('\n'); in visitModOpens()
600 append(moduleName); in visitModOpens()
605 append(";"); in visitModOpens()
606 append('\n'); in visitModOpens()
612 append("uses "); in visitModUses()
613 append(Joiner.on('.').join(modUses.typeName())); in visitModUses()
614 append(";"); in visitModUses()
615 append('\n'); in visitModUses()
621 append("provides "); in visitModProvides()
622 append(Joiner.on('.').join(modProvides.typeName())); in visitModProvides()
624 append(" with").append('\n'); in visitModProvides()
629 append(',').append('\n'); in visitModProvides()
631 append(Joiner.on('.').join(implName)); in visitModProvides()
636 append(";"); in visitModProvides()
637 append('\n'); in visitModProvides()