MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / fromJsonData

Method fromJsonData

lib/clientstate.ts:204–213  ·  view source on GitHub ↗
(jsondata: any)

Source from the content-addressed store, hash-verified

202 }
203
204 fromJsonData(jsondata: any) {
205 this.fileId = jsondata.fileId;
206 this.isIncluded = jsondata.isIncluded;
207 this.isOpen = jsondata.isOpen;
208 this.isMainSource = jsondata.isMainSource;
209 this.filename = jsondata.filename;
210 this.content = jsondata.content;
211 this.editorId = jsondata.editorId;
212 this.langId = jsondata.langId;
213 }
214}
215
216export class ClientStateTree {

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected