Searched refs:differenceElements (Results 1 – 4 of 4) sorted by relevance
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | DifferenceElementCalculatorTest.java | 42 List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(a, b); in calculateDifferenceEmpty() local 43 assertEquals(0, differenceElements.size()); in calculateDifferenceEmpty() 57 List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(a, b); in calculateDifferenceAIsEmpty() local 58 assertEquals(4, differenceElements.size()); in calculateDifferenceAIsEmpty() 59 … assertEquals(added(new CsmToken(GeneratedJavaParserConstants.LPAREN)), differenceElements.get(0)); in calculateDifferenceAIsEmpty() 60 assertEquals(added(new CsmChild(n1)), differenceElements.get(1)); in calculateDifferenceAIsEmpty() 61 … assertEquals(added(new CsmToken(GeneratedJavaParserConstants.RPAREN)), differenceElements.get(2)); in calculateDifferenceAIsEmpty() 62 assertEquals(added(new CsmChild(n2)), differenceElements.get(3)); in calculateDifferenceAIsEmpty() 76 List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(a, b); in calculateDifferenceBIsEmpty() local 77 assertEquals(4, differenceElements.size()); in calculateDifferenceBIsEmpty() [all …]
|
D | LexicalDifferenceCalculatorTest.java | 276 List<DifferenceElement> differenceElements = ldc.calculateListAdditionDifference( in differenceAfterddingStatementToEmptyBlock() local 282 …ement.kept(CsmElement.token(GeneratedJavaParserConstants.LBRACE)), differenceElements.get(index++)… in differenceAfterddingStatementToEmptyBlock() 283 assertEquals(DifferenceElement.kept(CsmElement.newline()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 284 assertEquals(DifferenceElement.added(CsmElement.indent()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 285 assertTrue(isAddedChild(differenceElements.get(index++), ExpressionStmt.class)); in differenceAfterddingStatementToEmptyBlock() 286 … assertEquals(DifferenceElement.added(CsmElement.newline()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 287 … assertEquals(DifferenceElement.added(CsmElement.unindent()), differenceElements.get(index++)); in differenceAfterddingStatementToEmptyBlock() 288 …ement.kept(CsmElement.token(GeneratedJavaParserConstants.RBRACE)), differenceElements.get(index++)… in differenceAfterddingStatementToEmptyBlock() 289 assertEquals(index, differenceElements.size()); in differenceAfterddingStatementToEmptyBlock()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalPreservingPrinter.java | 264 final List<DifferenceElement> differenceElements; in concreteListChange() local 266 …differenceElements = LEXICAL_DIFFERENCE_CALCULATOR.calculateListRemovalDifference(findNodeListName… in concreteListChange() 268 …differenceElements = LEXICAL_DIFFERENCE_CALCULATOR.calculateListAdditionDifference(findNodeListNam… in concreteListChange() 273 …Difference difference = new Difference(differenceElements, nodeText, changedList.getParentNodeForC… in concreteListChange() 280 …List<DifferenceElement> differenceElements = LEXICAL_DIFFERENCE_CALCULATOR.calculateListReplacemen… in concreteListReplacement() local 282 …Difference difference = new Difference(differenceElements, nodeText, changedList.getParentNodeForC… in concreteListReplacement()
|
D | LexicalDifferenceCalculator.java | 120 …List<DifferenceElement> differenceElements = DifferenceElementCalculator.calculate(original, after… in calculatePropertyChange() local 121 Difference difference = new Difference(differenceElements, nodeText, observedNode); in calculatePropertyChange()
|