Home
last modified time | relevance | path

Searched refs:LexicalPreservingPrinter (Results 1 – 13 of 13) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinterTest.java6 import static com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter.NODE_TEXT_…
74 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(fd); in checkNodeTextCreatedForField()
87 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(vd); in checkNodeTextCreatedForVariableDeclarator()
99 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(md); in checkNodeTextCreatedForMethod()
112 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(p1); in checkNodeTextCreatedForMethodParameter()
126 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(t); in checkNodeTextCreatedForPrimitiveType()
137 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(imp); in checkNodeTextCreatedForSimpleImport()
148 assertEqualsNoEol("import a;\nimport b;\nclass X{}", LexicalPreservingPrinter.print(cu)); in addedImportShouldBePrependedWithEOL()
159 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(field); in checkNodeTextCreatedGenericType()
170 NodeText nodeText = LexicalPreservingPrinter.getOrCreateNodeText(ad); in checkNodeTextCreatedAnnotationDeclaration()
[all …]
DTransformationsTest.java155 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in issue2099AddingStatementAfterTraillingComment1()
160 BlockStmt blockStmt = LexicalPreservingPrinter.setup(StaticJavaParser.parseBlock("{" + EOL + in issue2099AddingStatementAfterTraillingComment1()
166 String s = LexicalPreservingPrinter.print(blockStmt); in issue2099AddingStatementAfterTraillingComment1()
179 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in issue2099AddingStatementAfterTraillingComment2()
184 BlockStmt blockStmt = LexicalPreservingPrinter.setup(StaticJavaParser.parseBlock("{" + EOL + in issue2099AddingStatementAfterTraillingComment2()
190 String s = LexicalPreservingPrinter.print(blockStmt); in issue2099AddingStatementAfterTraillingComment2()
204 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in addingStatement1()
209 …CompilationUnit compilationUnit = LexicalPreservingPrinter.setup(StaticJavaParser.parse("public cl… in addingStatement1()
219 String s = LexicalPreservingPrinter.print(compilationUnit); in addingStatement1()
234 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in addingStatement2()
[all …]
DAbstractLexicalPreservingTest.java41 cu = LexicalPreservingPrinter.setup(parse(code)); in considerCode()
45 expression = LexicalPreservingPrinter.setup(parseExpression(code)); in considerExpression()
60 String actualCode = LexicalPreservingPrinter.print(node); in assertTransformed()
66 assertEquals(code, LexicalPreservingPrinter.print(cu != null ? cu : expression)); in assertUnchanged()
70 String actualCode = LexicalPreservingPrinter.print(node); in assertTransformedToString()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DMethodDeclarationTransformationsTest.java38 import com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter;
97 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingDuplicateJavaDocComment()
138 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in replacingDuplicateJavaDocComment()
183 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingDuplicateComment()
239 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingModifiersWithExistingAnnotations()
273 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in replacingModifiersWithExistingAnnotations()
337 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in addingToExistingAnnotations()
358 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in addingAnnotationsNoModifiers()
379 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in replacingAnnotations()
409 String result = LexicalPreservingPrinter.print(cu.findCompilationUnit().get()); in removingAnnotations()
[all …]
DStatementTransformationsTest.java32 import com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter;
43 LexicalPreservingPrinter.setup(statement); in consider()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DChildTextElement.java41 return LexicalPreservingPrinter.print(child); in expand()
59 return LexicalPreservingPrinter.getOrCreateNodeText(child); in getNodeTextForWrappedNode()
DDifferenceElementCalculator.java140 … considerRemoval(LexicalPreservingPrinter.getOrCreateNodeText(cte.getChild()), elements); in considerRemoval()
156 … NodeText nodeTextForChild = LexicalPreservingPrinter.getOrCreateNodeText(removedChild.getChild()); in considerRemoval()
DLexicalPreservingPrinter.java65 public class LexicalPreservingPrinter { class
115 return new LexicalPreservingPrinter.Observer(); in createObserver()
310LexicalPreservingPrinter.storeInitialTextForOneNode(node, tokensByNode.get(node)); in storeInitialText()
DDifference.java49 this.indentation = LexicalPreservingPrinter.findIndentation(node); in Difference()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/visitor/
DModifierVisitorTest.java32 import com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter;
141 LexicalPreservingPrinter.setup(cu); in issue2124()
143 System.out.println(LexicalPreservingPrinter.print(cu)); in issue2124()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/remove/
DNodeRemovalTest.java31 import com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter;
83 BlockStmt stmt = LexicalPreservingPrinter.setup(bstmt); in testRemoveStatementFromMethodBodyWithLexicalPreservingPrinter()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DParserConfiguration.java52 import com.github.javaparser.printer.lexicalpreservation.LexicalPreservingPrinter;
192 result.ifSuccessful(LexicalPreservingPrinter::setup); in ParserConfiguration()
/external/javaparser/
Dchangelog.md381 * LexicalPreservingPrinter has had a big speed optimization.
471 * The `LexicalPreservingPrinter` had its API changed a little: setup and printing are now separate …
472 so you don't have to drag an instance of `LexicalPreservingPrinter` through your code anymore.
617 Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`.
623 Beta: `TreeStructureVisitor`, and `LexicalPreservingPrinter`.
640 Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.
649 Beta: `TreeStructureVisitor`, `ConcreteSyntaxModel`, and `LexicalPreservingPrinter`.