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

Function getEnumMembers

test/fixtures/snapshot/typescript.js:2872–2881  ·  view source on GitHub ↗
(enumObject)

Source from the content-addressed store, hash-verified

2870 }
2871 Debug.formatEnum = formatEnum;
2872 function getEnumMembers(enumObject) {
2873 var result = [];
2874 for (var name in enumObject) {
2875 var value = enumObject[name];
2876 if (typeof value === "number") {
2877 result.push([value, name]);
2878 }
2879 }
2880 return ts.stableSort(result, function (x, y) { return ts.compareValues(x[0], y[0]); });
2881 }
2882 function formatSyntaxKind(kind) {
2883 return formatEnum(kind, ts.SyntaxKind, /*isFlags*/ false);
2884 }

Callers 1

formatEnumFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected