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

Function fix

test/fixtures/snapshot/typescript.js:156287–156290  ·  view source on GitHub ↗
(type, fixId, fixAllDescription)

Source from the content-addressed store, hash-verified

156285 }
156286 return actions;
156287 function fix(type, fixId, fixAllDescription) {
156288 var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, typeNode, type, checker); });
156289 return codefix.createCodeFixAction("jdocTypes", changes, [ts.Diagnostics.Change_0_to_1, original, checker.typeToString(type)], fixId, fixAllDescription);
156290 }
156291 },
156292 fixIds: [fixIdPlain, fixIdNullable],
156293 getAllCodeActions: function (context) {

Callers 1

typescript.jsFile · 0.70

Calls 1

doChangeFunction · 0.85

Tested by

no test coverage detected