MCPcopy Create free account
hub / github.com/FuelLabs/sway-vscode-plugin / constructor

Method constructor

client/src/program.ts:119–134  ·  view source on GitHub ↗
(
    public readonly name: string,
    public readonly sourceFilePath: string,
    public readonly children: Function[],
    public readonly type?: ProgramType
  )

Source from the content-addressed store, hash-verified

117
118export class Program extends TreeItem {
119 constructor(
120 public readonly name: string,
121 public readonly sourceFilePath: string,
122 public readonly children: Function[],
123 public readonly type?: ProgramType
124 ) {
125 super(
126 name,
127 children
128 ? TreeItemCollapsibleState.Expanded
129 : TreeItemCollapsibleState.None
130 );
131
132 this.label = name;
133 this.tooltip = name;
134 }
135
136 contextValue = this.type ?? 'program';
137}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected