MCPcopy Index your code
hub / github.com/nodejs/node / isStartOfExpressionStatement

Function isStartOfExpressionStatement

test/fixtures/snapshot/typescript.js:34356–34363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34354 }
34355 }
34356 function isStartOfExpressionStatement() {
34357 // As per the grammar, none of '{' or 'function' or 'class' can start an expression statement.
34358 return token() !== 18 /* SyntaxKind.OpenBraceToken */ &&
34359 token() !== 98 /* SyntaxKind.FunctionKeyword */ &&
34360 token() !== 84 /* SyntaxKind.ClassKeyword */ &&
34361 token() !== 59 /* SyntaxKind.AtToken */ &&
34362 isStartOfExpression();
34363 }
34364 function parseExpression() {
34365 // Expression[in]:
34366 // AssignmentExpression[in]

Callers 1

Calls 2

isStartOfExpressionFunction · 0.85
tokenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…