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

Function isPreviousPropertyDeclarationTerminated

test/fixtures/snapshot/typescript.js:134754–134758  ·  view source on GitHub ↗
(contextToken, position)

Source from the content-addressed store, hash-verified

134752 && !(ts.isClassLike(contextToken.parent) && (contextToken !== previousToken || position > previousToken.end));
134753 }
134754 function isPreviousPropertyDeclarationTerminated(contextToken, position) {
134755 return contextToken.kind !== 63 /* SyntaxKind.EqualsToken */ &&
134756 (contextToken.kind === 26 /* SyntaxKind.SemicolonToken */
134757 || !ts.positionsAreOnSameLine(contextToken.end, position, sourceFile));
134758 }
134759 function isFunctionLikeButNotConstructor(kind) {
134760 return ts.isFunctionLikeKind(kind) && kind !== 171 /* SyntaxKind.Constructor */;
134761 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected