Home
last modified time | relevance | path

Searched refs:calculatedSyntaxModel (Results 1 – 3 of 3) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalDifferenceCalculatorTest.java245 LexicalDifferenceCalculator.CalculatedSyntaxModel calculatedSyntaxModel = in csmModelAfterAddingStatementToEmptyBlock() local
253 …assertEquals(CsmElement.token(GeneratedJavaParserConstants.LBRACE), calculatedSyntaxModel.elements… in csmModelAfterAddingStatementToEmptyBlock()
254 assertEquals(CsmElement.newline(), calculatedSyntaxModel.elements.get(index++)); in csmModelAfterAddingStatementToEmptyBlock()
255 assertEquals(CsmElement.indent(), calculatedSyntaxModel.elements.get(index++)); in csmModelAfterAddingStatementToEmptyBlock()
256 assertTrue(isChild(calculatedSyntaxModel.elements.get(index++), ExpressionStmt.class)); in csmModelAfterAddingStatementToEmptyBlock()
257 assertEquals(CsmElement.newline(), calculatedSyntaxModel.elements.get(index++)); in csmModelAfterAddingStatementToEmptyBlock()
258 assertEquals(CsmElement.unindent(), calculatedSyntaxModel.elements.get(index++)); in csmModelAfterAddingStatementToEmptyBlock()
259 …assertEquals(CsmElement.token(GeneratedJavaParserConstants.RBRACE), calculatedSyntaxModel.elements… in csmModelAfterAddingStatementToEmptyBlock()
260 assertEquals(index, calculatedSyntaxModel.elements.size()); in csmModelAfterAddingStatementToEmptyBlock()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DDifferenceElementCalculator.java78 …r> findChildrenPositions(LexicalDifferenceCalculator.CalculatedSyntaxModel calculatedSyntaxModel) { in findChildrenPositions() argument
80 for (int i=0;i<calculatedSyntaxModel.elements.size();i++) { in findChildrenPositions()
81 CsmElement element = calculatedSyntaxModel.elements.get(i); in findChildrenPositions()
DLexicalPreservingPrinter.java471 …LexicalDifferenceCalculator.CalculatedSyntaxModel calculatedSyntaxModel = new LexicalDifferenceCal… in interpret() local
476 for (CsmElement element : calculatedSyntaxModel.elements) { in interpret()