MCPcopy Index your code
hub / github.com/nodejs/node / getFix

Function getFix

test/fixtures/snapshot/typescript.js:150341–150344  ·  view source on GitHub ↗
(context, decl, trackChanges, fixedDeclarations)

Source from the content-addressed store, hash-verified

150339 },
150340 });
150341 function getFix(context, decl, trackChanges, fixedDeclarations) {
150342 var changes = trackChanges(function (t) { return makeChange(t, context.sourceFile, decl, fixedDeclarations); });
150343 return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_async_modifier_to_containing_function, fixId, ts.Diagnostics.Add_all_missing_async_modifiers);
150344 }
150345 function makeChange(changeTracker, sourceFile, insertionSite, fixedDeclarations) {
150346 if (fixedDeclarations) {
150347 if (fixedDeclarations.has(ts.getNodeId(insertionSite))) {

Callers 1

typescript.jsFile · 0.85

Calls 2

trackChangesFunction · 0.85
makeChangeFunction · 0.85

Tested by

no test coverage detected