MCPcopy Create free account
hub / github.com/YunYouJun/advjs / isScript

Function isScript

packages/parser/src/syntax/code.ts:17–19  ·  view source on GitHub ↗
(node?: AdvAst.Child)

Source from the content-addressed store, hash-verified

15 * @param node
16 */
17export function isScript(node?: AdvAst.Child): node is AdvAst.CodeFunction {
18 return node ? (node.type === 'code' && scriptSuffix.includes(node.lang || '')) : false
19}
20
21/**
22 * advnode suffix & parse

Callers 2

handleCodeFunction · 0.90
convertMdToAdvFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected