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

Function isConstAssertion

test/fixtures/snapshot/typescript.js:49634–49637  ·  view source on GitHub ↗
(location)

Source from the content-addressed store, hash-verified

49632 }
49633 }
49634 function isConstAssertion(location) {
49635 return (ts.isAssertionExpression(location) && ts.isConstTypeReference(location.type))
49636 || (ts.isJSDocTypeTag(location) && ts.isConstTypeReference(location.typeExpression));
49637 }
49638 /**
49639 * Resolve a given name for a given meaning at a given location. An error is reported if the name was not found and
49640 * the nameNotFoundMessage argument is not undefined. Returns the resolved symbol, or undefined if no symbol with

Callers 1

resolveNameHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected