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

Function isFromObjectTypeDeclaration

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

Source from the content-addressed store, hash-verified

135313 }
135314 // TODO: GH#19856 Would like to return `node is Node & { parent: (ClassElement | TypeElement) & { parent: ObjectTypeDeclaration } }` but then compilation takes > 10 minutes
135315 function isFromObjectTypeDeclaration(node) {
135316 return node.parent && ts.isClassOrTypeElement(node.parent) && ts.isObjectTypeDeclaration(node.parent.parent);
135317 }
135318 function isValidTrigger(sourceFile, triggerCharacter, contextToken, position) {
135319 switch (triggerCharacter) {
135320 case ".":

Calls

no outgoing calls

Tested by

no test coverage detected