Home
last modified time | relevance | path

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

/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DFormatFileCallable.java45 String formatted = formatter.formatSource(input, characterRanges(input).asRanges()); in call()
63 private RangeSet<Integer> characterRanges(String input) { in characterRanges() method in FormatFileCallable
64 final RangeSet<Integer> characterRanges = TreeRangeSet.create(); in characterRanges() local
67 characterRanges.add(Range.closedOpen(0, input.length())); in characterRanges()
68 return characterRanges; in characterRanges()
71 characterRanges.addAll(Formatter.lineRangesToCharRanges(input, parameters.lines())); in characterRanges()
79 characterRanges.add( in characterRanges()
83 return characterRanges; in characterRanges()
DFormatter.java265 public String formatSource(String input, Collection<Range<Integer>> characterRanges) in formatSource() argument
267 return JavaOutput.applyReplacements(input, getFormatReplacements(input, characterRanges)); in formatSource()
279 String input, Collection<Range<Integer>> characterRanges) throws FormatterException { in getFormatReplacements() argument
285 javaInput = ModifierOrderer.reorderModifiers(javaInput, characterRanges); in getFormatReplacements()
295 RangeSet<Integer> tokenRangeSet = javaInput.characterRangesToTokenRanges(characterRanges); in getFormatReplacements()
308 final RangeSet<Integer> characterRanges = TreeRangeSet.create(); in lineRangesToCharRanges() local
316 characterRanges.add(range); in lineRangesToCharRanges()
318 return characterRanges; in lineRangesToCharRanges()
DModifierOrderer.java87 static JavaInput reorderModifiers(JavaInput javaInput, Collection<Range<Integer>> characterRanges) in reorderModifiers() argument
94 RangeSet<Integer> tokenRanges = javaInput.characterRangesToTokenRanges(characterRanges); in reorderModifiers()
DJavaInput.java664 public RangeSet<Integer> characterRangesToTokenRanges(Collection<Range<Integer>> characterRanges) in characterRangesToTokenRanges() argument
667 for (Range<Integer> characterRange0 : characterRanges) { in characterRangesToTokenRanges()