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

Class VariableDefinitionNode

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

Source from the content-addressed store, hash-verified

84export abstract class NonControlStatementNode extends StatementNode { }
85
86export class VariableDefinitionNode extends NonControlStatementNode implements Named, Typed {
87 constructor(
88 public type: Type,
89 public modifier: string[],
90 public name: string,
91 public expression: ExpressionNode,
92 ) {
93 super();
94 }
95
96 accept<T>(visitor: AstVisitor<T>): T {
97 return visitor.visitVariableDefinition(this);
98 }
99}
100
101export class TupleAssignmentNode extends NonControlStatementNode {
102 constructor(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected