MCPcopy Create free account
hub / github.com/nodejs/node / insertAccessor

Function insertAccessor

test/fixtures/snapshot/typescript.js:158208–158212  ·  view source on GitHub ↗
(changeTracker, file, accessor, declaration, container)

Source from the content-addressed store, hash-verified

158206 }
158207 }
158208 function insertAccessor(changeTracker, file, accessor, declaration, container) {
158209 ts.isParameterPropertyDeclaration(declaration, declaration.parent) ? changeTracker.insertMemberAtStart(file, container, accessor) :
158210 ts.isPropertyAssignment(declaration) ? changeTracker.insertNodeAfterComma(file, declaration, accessor) :
158211 changeTracker.insertNodeAfter(file, declaration, accessor);
158212 }
158213 function updateReadonlyPropertyInitializerStatementConstructor(changeTracker, file, constructor, fieldName, originalName) {
158214 if (!constructor.body)
158215 return;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected