MCPcopy
hub / github.com/witheve/Eve / record

Method record

src/runtime/analyzer.ts:33–47  ·  view source on GitHub ↗
(parseNode: any, kind: "action" | "scan")

Source from the content-addressed store, hash-verified

31 }
32
33 record(parseNode: any, kind: "action" | "scan") {
34 let changes = this.changes;
35 let recordId = parseNode.id;
36 let [start, stop] = nodeToBoundaries(parseNode);
37 changes.store("session", recordId, "tag", "record", "analyzer");
38 changes.store("session", recordId, "block", this.block.id, "analyzer");
39 changes.store("session", recordId, "start", start, "analyzer");
40 changes.store("session", recordId, "stop", stop, "analyzer");
41 changes.store("session", recordId, "entity", parseNode.variable.id, "analyzer");
42 changes.store("session", recordId, "kind", kind, "analyzer");
43 for(let scope of parseNode.scopes) {
44 changes.store("session", recordId, "scopes", scope, "analyzer");
45 }
46 return recordId;
47 }
48
49 scan(parseNode: any, scopes: string[], entity: any, attribute: string, value: any) {
50 let changes = this.changes;

Callers 2

_scanRecordMethod · 0.45
_actionRecordMethod · 0.45

Calls 2

nodeToBoundariesFunction · 0.90
storeMethod · 0.45

Tested by

no test coverage detected