MCPcopy
hub / github.com/bazelbuild/bazel / format

Method format

src/main/java/net/starlark/java/eval/Printer.java:302–305  ·  view source on GitHub ↗

Appends a string, formatted as if by Starlark's str % tuple operator, to the printer's buffer. Supported conversions: %s (convert as if by str()) %r (convert as if by repr()) %d (convert an integer to its decimal representat

(
      Printer printer, StarlarkSemantics semantics, String format, Object... arguments)

Source from the content-addressed store, hash-verified

300 * @throws IllegalFormatException if the format string is invalid or the arguments do not match it
301 */
302 public static void format(
303 Printer printer, StarlarkSemantics semantics, String format, Object... arguments) {
304 formatWithList(printer, semantics, format, Arrays.asList(arguments));
305 }
306
307 /** Same as {@link #format}, but with a list instead of variadic args. */
308 @SuppressWarnings("FormatString") // see b/178189609

Callers 15

formatMethod · 0.95
get_input_filesFunction · 0.45
mainMethod · 0.45
startInstantToStringMethod · 0.45
frameStringMethod · 0.45
describeMethod · 0.45
describeMethod · 0.45
formatDescriptionNameMethod · 0.45
analyzerErrorMethod · 0.45
readArgMethod · 0.45
preProcessMethod · 0.45

Calls 1

formatWithListMethod · 0.95

Tested by 9

mainMethod · 0.36
startInstantToStringMethod · 0.36
frameStringMethod · 0.36
describeMethod · 0.36
describeMethod · 0.36
formatDescriptionNameMethod · 0.36
analyzerErrorMethod · 0.36
toStringMethod · 0.36