Questions that suit the selected kind: "What does JSONBAgg call?" led a class to "no CALLS edge" (W9).
(text: typeof noQuestionText['en'], name: string, evidence?: GalaxyEvidence)
| 146 | const CONTAINER_KINDS = new Set(['file', 'folder', 'module', 'package', 'namespace', 'project']); |
| 147 | /** Questions that suit the selected kind: "What does JSONBAgg call?" led a class to "no CALLS edge" (W9). */ |
| 148 | function galaxyExamples(text: typeof noQuestionText['en'], name: string, evidence?: GalaxyEvidence): string[] { |
| 149 | const kind = (evidence && evidence.rootCount <= 1 ? evidence.roots[0]?.kind ?? evidence.selectionKind : evidence?.selectionKind)?.toLowerCase() ?? ''; |
| 150 | if (TYPE_KINDS.has(kind)) return [text.whatIs(name), text.whoUses(name), ...evidence?.relationships.outgoing.some(group => group.type === 'INHERITS') ? [text.whatInherits(name)] : []]; |
| 151 | if (CONTAINER_KINDS.has(kind)) return [text.whatContains(name), text.inDetail(name)]; |
| 152 | return [text.whatDoes(name), text.whoCalls(name), text.whatCalls(name)]; |
| 153 | } |
| 154 | |
| 155 | /** Two or three questions that work for the selection, as a Markdown list. */ |
| 156 | function examples(language: 'en' | 'de', subject: ExampleSubject): string { |