MCPcopy
hub / github.com/silverbulletmd/silverbullet / parseExpressionString

Function parseExpressionString

client/space_lua/parse.ts:1745–1748  ·  view source on GitHub ↗
(expr: string)

Source from the content-addressed store, hash-verified

1743 * Helper function to parse a Lua expression string
1744 */
1745export function parseExpressionString(expr: string): LuaExpression {
1746 const parsedLua = parseBlock(`_(${expr})`) as LuaBlock;
1747 return (parsedLua.statements[0] as LuaFunctionCallStatement).call.args[0];
1748}

Callers 15

updatePageListCacheMethod · 0.90
loadCustomStylesMethod · 0.90
reloadMethod · 0.90
handleObjectsRequestFunction · 0.90
translateListRequestFunction · 0.90
makeOrderByFunction · 0.90
aggregates.test.tsFile · 0.90
fmtExprFunction · 0.90
parse.test.tsFile · 0.90
interpolateLuaStringFunction · 0.90
space_lua.tsFile · 0.90

Calls 1

parseBlockFunction · 0.70

Tested by 3

makeOrderByFunction · 0.72
fmtExprFunction · 0.72
runDataStoreTestFunction · 0.72