Home
last modified time | relevance | path

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

/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DTrees.java37 return getEndPosition(tree, path) - getStartPosition(tree); in getLength()
41 static int getStartPosition(Tree expression) { in getStartPosition() method in Trees
42 return ((JCTree) expression).getStartPosition(); in getStartPosition()
59 return source.subSequence(getStartPosition(node), getEndPosition(node, path)).toString(); in getSourceForNode()
DStringWrapper.java156 int startColumn = lineMap.getColumnNumber(getStartPosition(flat.get(0))) - 1; in getReflowReplacements()
170 Range.closedOpen(getStartPosition(flat.get(0)), getEndPosition(unit, getLast(flat))), in getReflowReplacements()
186 String text = input.substring(getStartPosition(tree) + 1, getEndPosition(unit, tree) - 1); in stringComponents()
342 input.subSequence(getEndPosition(unit, one), getStartPosition(two))); in noComments()
352 private static int getStartPosition(Tree tree) { in getStartPosition() method in StringWrapper
353 return ((JCTree) tree).getStartPosition(); in getStartPosition()
DDimensionHelpers.java87 int pos = ((JCTree) dim.get(0)).getStartPosition(); in reorderBySourcePosition()
DJavaInputAstVisitor.java28 import static com.google.googlejavaformat.java.Trees.getStartPosition;
561 int startPosition = getStartPosition(expression); in hasOnlyShortItems()
1352 int typeParameterStart = getStartPosition(node.getTypeParameters().get(0));
1354 if (getStartPosition(annotations.get(i)) > typeParameterStart) {
3211 return positionToColumnMap.get(builder.actualStartColumn(getStartPosition(expression)));
3546 int start = getStartPosition(first);
3550 && getStartPosition(it.peek()) == start) {
3559 int position = ((JCTree) bodyDeclaration).getStartPosition();
3665 builder.sync(((JCTree) node).getStartPosition());
DRemoveUnusedImports.java256 replacements.put(Range.closedOpen(importTree.getStartPosition(), endPosition), ""); in buildReplacements()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DStartPositionComparator.java26 return Integer.compare(o1.getStartPosition(), o2.getStartPosition()); in compare()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DBaseModifyCommentScanner.java44 String commentText = document.get(comment.getStartPosition(), comment.getLength()); in process()
47 document.replace(comment.getStartPosition(), comment.getLength(), newCommentText); in process()
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DTagMatchingDeclarations.java66 Collections.sort(matchingNodes, Comparator.comparingInt(o -> o.declaration.getStartPosition())); in process()
/external/cldr/tools/java/org/unicode/cldr/draft/
DNormalizedIdentifierParser.java127 public int getStartPosition() {
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/
DMain.java357 documentBefore.getLineOfOffset(node.getStartPosition()); in nodeIdentifier()