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

Function getTouchingPropertyName

test/fixtures/snapshot/typescript.js:127401–127403  ·  view source on GitHub ↗

* Gets the token whose text has range [start, end) and * position >= start and (position < end or (position === end && token is literal or keyword or identifier))

(sourceFile, position)

Source from the content-addressed store, hash-verified

127399 * position >= start and (position < end or (position === end && token is literal or keyword or identifier))
127400 */
127401 function getTouchingPropertyName(sourceFile, position) {
127402 return getTouchingToken(sourceFile, position, function (n) { return ts.isPropertyNameLiteral(n) || ts.isKeyword(n.kind) || ts.isPrivateIdentifier(n); });
127403 }
127404 ts.getTouchingPropertyName = getTouchingPropertyName;
127405 /**
127406 * Returns the token if position is in [start, end).

Callers

nothing calls this directly

Calls 1

getTouchingTokenFunction · 0.85

Tested by

no test coverage detected