MCPcopy Create free account
hub / github.com/CashScript/cashscript / visitFunctionBody

Method visitFunctionBody

packages/cashc/src/ast/AstBuilder.ts:153–158  ·  view source on GitHub ↗
(ctx: FunctionBodyContext)

Source from the content-addressed store, hash-verified

151 }
152
153 visitFunctionBody(ctx: FunctionBodyContext): BlockNode {
154 const statements = ctx.statement_list().map((s) => this.visit(s) as StatementNode);
155 const block = new BlockNode(statements);
156 block.location = Location.fromCtx(ctx);
157 return block;
158 }
159
160 visitParameter(ctx: ParameterContext): ParameterNode {
161 const type = parseType(ctx.typeName().getText());

Callers 1

acceptMethod · 0.80

Calls 2

fromCtxMethod · 0.80
statement_listMethod · 0.45

Tested by

no test coverage detected