(parseNode: any, scopes: string[], entity: any, attribute: string, value: any)
| 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; |
no test coverage detected