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

Function getNodeToInsertPropertyAfter

test/fixtures/snapshot/typescript.js:154929–154938  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

154927 }
154928 // Gets the last of the first run of PropertyDeclarations, or undefined if the class does not start with a PropertyDeclaration.
154929 function getNodeToInsertPropertyAfter(node) {
154930 var res;
154931 for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
154932 var member = _a[_i];
154933 if (!ts.isPropertyDeclaration(member))
154934 break;
154935 res = member;
154936 }
154937 return res;
154938 }
154939 function createAddIndexSignatureAction(context, sourceFile, node, tokenName, typeNode) {
154940 // Index signatures cannot have the static modifier.
154941 var stringTypeNode = ts.factory.createKeywordTypeNode(150 /* SyntaxKind.StringKeyword */);

Callers 2

addMissingMemberInJsFunction · 0.85
addPropertyDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected