MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / CALL_NODE

Function CALL_NODE

src/parser/utils.ts:23–34  ·  view source on GitHub ↗
(
	name: string,
	args: Ast.Expression[],
	start: Ast.Pos,
	end: Ast.Pos,
)

Source from the content-addressed store, hash-verified

21}
22
23export function CALL_NODE(
24 name: string,
25 args: Ast.Expression[],
26 start: Ast.Pos,
27 end: Ast.Pos,
28): Ast.Call {
29 return NODE('call', {
30 // 糖衣構文はidentifierがソースコードに出現しないので長さ0とする。
31 target: NODE('identifier', { name }, start, start),
32 args,
33 }, start, end);
34}
35
36export function unexpectedTokenError(token: TokenKind, pos: Ast.Pos, info?: unknown): AiScriptError {
37 if (token === TokenKind.EOF) {

Callers 1

parseOutFunction · 0.85

Calls 1

NODEFunction · 0.85

Tested by

no test coverage detected