Home
last modified time | relevance | path

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

/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DFormatterTest.java150 String output = new Formatter().formatSource(input); in blankInClassBody()
158 String output = new Formatter().formatSource(input); in blankInClassBodyNoTrailing()
166 String output = new Formatter().formatSource(input); in docCommentTrailingBlank()
174 String output = new Formatter().formatSource(input); in blockCommentInteriorTrailingBlank()
182 String output = new Formatter().formatSource(input); in blockCommentTrailingBlank()
190 String output = new Formatter().formatSource(input); in lineCommentTrailingBlank()
199 String output = new Formatter().formatSource(input); in lineCommentTrailingThinSpace()
207 String output = new Formatter().formatSource(input); in noBlankAfterLineCommentWithInteriorBlankLine()
215 String output = new Formatter().formatSource(input); in badConstructor()
223 String output = new Formatter().formatSource(input); in voidMethod()
[all …]
DStringWrapperIntegrationTest.java393 assertThat(StringWrapper.wrap(40, formatter.formatSource(input), formatter)).isEqualTo(output); in test()
398 assertThat(StringWrapper.wrap(40, formatter.formatSource(input.replace("\n", "\r")), formatter)) in testCR()
405 StringWrapper.wrap(40, formatter.formatSource(input.replace("\n", "\r\n")), formatter)) in testCRLF()
411 String wrap = StringWrapper.wrap(40, formatter.formatSource(input), formatter); in idempotent()
412 assertThat(wrap).isEqualTo(formatter.formatSource(wrap)); in idempotent()
DFormatterIntegrationTest.java128 String output = new Formatter().formatSource(input); in format()
139 String output = new Formatter().formatSource(mangled); in idempotentLF()
150 String output = new Formatter().formatSource(mangled); in idempotentCR()
161 String output = new Formatter().formatSource(mangled); in idempotentCRLF()
DPartialFormattingTest.java376 .formatSource(input, ImmutableList.of(Range.closedOpen(characterILo, characterIHi + 1))); in doGetFormatReplacements()
643 new Formatter().formatSource(""); in emptyFile()
645 .formatSource( in emptyFile()
1034 String output = new Formatter().formatSource(input, ranges); in noTrailingWhitespace()
1064 String output = new Formatter().formatSource(input, ranges); in trailingNonBreakingWhitespace()
1318 String output = new Formatter().formatSource(input, ImmutableList.of(range)); in onNewline()
1332 String output = new Formatter().formatSource(input, ImmutableList.of(range)); in onNewline()
1372 String output = new Formatter().formatSource(input, ImmutableList.of(range)); in afterNewline()
1381 String output = new Formatter().formatSource(input, ImmutableList.of(range)); in afterNewline()
1389 String output = new Formatter().formatSource(input, ImmutableList.of(range)); in afterNewline()
[all …]
DJavadocFormattingTest.java1147 String output = formatter.formatSource(input); in paragraphTagNewlines()
1161 String output = formatter.formatSource(input); in listItemSpaces()
1380 String actual = formatter.formatSource(Joiner.on('\n').join(input)); in doFormatTest()
1393 String actual = formatter.formatSource(Joiner.on(separator).join(input)); in windowsLineSeparator()
DArrayDimensionTest.java93 String formatted = new Formatter().formatSource(source); in format()
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DFormatter.java216 public void formatSource(CharSource input, CharSink output) in formatSource() method in Formatter
220 output.write(formatSource(input.read())); in formatSource()
232 public String formatSource(String input) throws FormatterException { in formatSource() method in Formatter
233 return formatSource(input, ImmutableList.of(Range.closedOpen(0, input.length()))); in formatSource()
251 String formatted = formatSource(input); in formatSourceAndFixImports()
265 public String formatSource(String input, Collection<Range<Integer>> characterRanges) in formatSource() method in Formatter
DFormatFileCallable.java45 String formatted = formatter.formatSource(input, characterRanges(input).asRanges()); in call()
DSnippetFormatter.java114 String replacement = formatter.formatSource(wrapper.contents.toString(), ranges); in format()
DStringWrapper.java80 String firstPass = formatter.formatSource(input, replacements.asMapOfRanges().keySet()); in wrap()
/external/guice/core/src/com/google/inject/internal/
DMessages.java90 formatSource(fmt, source); in formatMessages()
214 static void formatSource(Formatter formatter, Object source) { in formatSource() method in Messages
220 formatSource(formatter, source, elementSource); in formatSource()
223 static void formatSource(Formatter formatter, Object source, ElementSource elementSource) { in formatSource() method in Messages
231 formatSource(formatter, dependency.getKey(), elementSource); in formatSource()
276 formatSource(formatter, injectionPoint.getMember()); in formatInjectionPoint()
DErrors.java208 Messages.formatSource(fmt, bindingMap.get(bindingKey).getSource()); in missingImplementationWithHint()
661 public static void formatSource(Formatter formatter, Object source) {
662 Messages.formatSource(formatter, source);
/external/google-java-format/
DREADME.md113 You can then use the formatter through the `formatSource` methods. E.g.
116 String formattedSource = new Formatter().formatSource(sourceString);
124 new Formatter().formatSource(source, output);
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/filer/
DFormattingJavaFileObject.java72 formatter.formatSource( in openWriter()