MCPcopy Create free account
hub / github.com/observablehq/framework / getBinaryExpressionValue

Function getBinaryExpressionValue

src/javascript/source.ts:42–44  ·  view source on GitHub ↗
(node: BinaryExpression)

Source from the content-addressed store, hash-verified

40}
41
42function getBinaryExpressionValue(node: BinaryExpression): string {
43 return getStringLiteralValue(node.left as StringLiteral) + getStringLiteralValue(node.right as StringLiteral);
44}
45
46function isMemberExpression(node: Node): node is MemberExpression {
47 return node.type === "MemberExpression";

Callers 1

getStringLiteralValueFunction · 0.85

Calls 1

getStringLiteralValueFunction · 0.85

Tested by

no test coverage detected