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

Class FunctionDefinitionNode

packages/cashc/src/ast/AST.ts:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52export class FunctionDefinitionNode extends Node implements Named {
53 symbolTable?: SymbolTable;
54 opRolls: Map<string, IdentifierNode> = new Map();
55
56 constructor(
57 public name: string,
58 public parameters: ParameterNode[],
59 public body: BlockNode,
60 ) {
61 super();
62 }
63
64 accept<T>(visitor: AstVisitor<T>): T {
65 return visitor.visitFunctionDefinition(this);
66 }
67}
68
69export class ParameterNode extends Node implements Named, Typed {
70 constructor(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected