MCPcopy Create free account
hub / github.com/angular/angular / createQuickInfo

Function createQuickInfo

packages/language-service/src/utils/index.ts:489–508  ·  view source on GitHub ↗
(
  name: string,
  kind: DisplayInfoKind,
  textSpan: ts.TextSpan,
  containerName?: string,
  type?: string,
  documentation?: ts.SymbolDisplayPart[],
  tags?: ts.JSDocTagInfo[],
)

Source from the content-addressed store, hash-verified

487 * @param documentation docstring or comment
488 */
489export function createQuickInfo(
490 name: string,
491 kind: DisplayInfoKind,
492 textSpan: ts.TextSpan,
493 containerName?: string,
494 type?: string,
495 documentation?: ts.SymbolDisplayPart[],
496 tags?: ts.JSDocTagInfo[],
497): ts.QuickInfo {
498 const displayParts = createDisplayParts(name, kind, containerName, type);
499
500 return {
501 kind: unsafeCastDisplayInfoKindToScriptElementKind(kind),
502 kindModifiers: ts.ScriptElementKindModifier.none,
503 textSpan: textSpan,
504 displayParts,
505 documentation,
506 tags,
507 };
508}

Tested by

no test coverage detected