MCPcopy Create free account
hub / github.com/commonhaus/foundation / text

Method text

templates/panda/PolicyPanda.java:661–677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

659 }
660
661 private List<String> text() {
662 List<String> text = new ArrayList<>();
663 text.add("Path: %s".formatted(path));
664 text.add("[Line: %d, Column: %d] %s".formatted(line, column, kind));
665 text.add("");
666 text.add(" " + source.trim());
667 text.add("");
668 if (message != null) {
669 text.addAll(List.of(("*Message*: " + message).split("\n")));
670 text.add("");
671 }
672 if (suggestion != null && !suggestion.equals(message)) {
673 text.addAll(List.of(("*Suggestion*: " + message).split("\n")));
674 text.add("");
675 }
676 return text;
677 }
678 }
679}

Callers 2

summaryMethod · 0.95
markdownSummaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected