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

Method provide

src/runtime/analyzer.ts:76–99  ·  view source on GitHub ↗
(parseNode: any, scopes: string[], entity: any, attribute: string, value: any)

Source from the content-addressed store, hash-verified

74 }
75
76 provide(parseNode: any, scopes: string[], entity: any, attribute: string, value: any) {
77 let changes = this.changes;
78 let actionId = parseNode.id;
79 let [start, stop] = nodeToBoundaries(parseNode, this.block.start);
80 changes.store("session", actionId, "tag", "action", "analyzer");
81 changes.store("session", actionId, "block", this.block.id, "analyzer");
82 changes.store("session", actionId, "start", start, "analyzer");
83 changes.store("session", actionId, "stop", stop, "analyzer");
84 changes.store("session", actionId, "entity", entity.id, "analyzer");
85 changes.store("session", actionId, "attribute", attribute, "analyzer");
86 if(parseNode.buildId !== undefined) {
87 changes.store("session", actionId, "build-node", parseNode.buildId, "analyzer");
88 }
89 if(value.id !== undefined) {
90 changes.store("session", actionId, "value", value.id, "analyzer");
91 changes.store("session", value.id, "tag", "variable", "analyzer");
92 } else {
93 changes.store("session", actionId, "value", value, "analyzer");
94 }
95 for(let scope of scopes) {
96 changes.store("session", actionId, "scopes", scope, "analyzer");
97 }
98 return actionId;
99 }
100
101 value(node) {
102 if(node.type === "constant") return node.value;

Callers 2

_actionRecordMethod · 0.45
_actionActionMethod · 0.45

Calls 2

nodeToBoundariesFunction · 0.90
storeMethod · 0.45

Tested by

no test coverage detected