Home
last modified time | relevance | path

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

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DDifference.java79 private boolean isAfterLBrace(NodeText nodeText, int nodeTextIndex) { in isAfterLBrace() argument
80 if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isToken(LBRACE)) { in isAfterLBrace()
83 if (nodeTextIndex > 0 && nodeText.getElements().get(nodeTextIndex - 1).isSpaceOrTab()) { in isAfterLBrace()
84 return isAfterLBrace(nodeText, nodeTextIndex - 1); in isAfterLBrace()
93 private int considerEnforcingIndentation(NodeText nodeText, int nodeTextIndex) { in considerEnforcingIndentation() argument
95 … for (int i = nodeTextIndex; i >= 0 && hasOnlyWsBefore && i < nodeText.getElements().size(); i--) { in considerEnforcingIndentation()
103 int res = nodeTextIndex; in considerEnforcingIndentation()
105 for (int i = nodeTextIndex; i >= 0 && i < nodeText.getElements().size(); i--) { in considerEnforcingIndentation()
751 …ndentation(List<TokenTextElement> indentation, NodeText nodeText, int nodeTextIndex, boolean follo… in adjustIndentation() argument
752 …ntationAdj = processIndentation(indentation, nodeText.getElements().subList(0, nodeTextIndex - 1)); in adjustIndentation()
[all …]