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

Function checkGrammarMappedType

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

Source from the content-addressed store, hash-verified

80819 }
80820 }
80821 function checkGrammarMappedType(node) {
80822 var _a;
80823 if ((_a = node.members) === null || _a === void 0 ? void 0 : _a.length) {
80824 return grammarErrorOnNode(node.members[0], ts.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);
80825 }
80826 }
80827 function checkThisType(node) {
80828 getTypeFromThisTypeNode(node);
80829 }

Callers 1

checkMappedTypeFunction · 0.85

Calls 1

grammarErrorOnNodeFunction · 0.85

Tested by

no test coverage detected