MCPcopy Index your code
hub / github.com/angular/angular / expectIncludeAddText

Function expectIncludeAddText

packages/language-service/test/code_fixes_spec.ts:1507–1531  ·  view source on GitHub ↗
({
  codeActions,
  position,
  text,
  fileName,
}: {
  codeActions: readonly ts.CodeAction[];
  position: number | null;
  text: string;
  fileName: string;
})

Source from the content-addressed store, hash-verified

1505}
1506
1507function expectIncludeAddText({
1508 codeActions,
1509 position,
1510 text,
1511 fileName,
1512}: {
1513 codeActions: readonly ts.CodeAction[];
1514 position: number | null;
1515 text: string;
1516 fileName: string;
1517}) {
1518 let includeAddText = false;
1519 for (const codeAction of codeActions) {
1520 includeAddText = includeAddTextInChanges({
1521 fileTextChanges: codeAction.changes,
1522 position,
1523 text,
1524 fileName,
1525 });
1526 if (includeAddText) {
1527 return;
1528 }
1529 }
1530 expect(includeAddText).toBeTruthy();
1531}
1532
1533function expectIncludeReplacementTextForFileTextChange({
1534 fileTextChanges,

Callers 1

code_fixes_spec.tsFile · 0.85

Calls 1

includeAddTextInChangesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…