UNPKG
@specs-feup/clava
Version:
latest (3.5.1)
staging (3.0.34-202512290033.0)
3.5.1
3.5.0
3.0.34-202512290033.0
3.0.34-202512201103.0
3.0.34-202512201059.0
3.0.34-202512062218.0
3.0.34-202511191715.0
3.0.34-202511132148.0
3.0.34-202511041514.0
3.0.33
3.0.33-202511041453.0
3.0.33-202509301708.0
3.0.32
3.0.32-202509111138.0
3.0.31
3.0.30
3.0.29
3.0.29-202509051359.0
3.0.29-202509031834.0
3.0.28
3.0.28-202509031751.0
3.0.28-202508171635.0
3.0.28-202508161830.0
3.0.28-202508101941.0
3.0.27
3.0.27-202508101939.0
3.0.27-202508091620.0
3.0.27-202508091210.0
3.0.27-202508091048.0
3.0.27-202508071512.0
3.0.26
3.0.26-202508061855.0
3.0.26-202508011448.0
3.0.25
3.0.25-202508011330.0
3.0.24
3.0.24-202508011124.0
3.0.23
3.0.23-202508011047.0
3.0.22
3.0.21
3.0.21-202508010836.0
3.0.20
3.0.20-202507301732.0
3.0.19
3.0.19-202507301730.0
3.0.19-202507251742.0
3.0.19-202507220922.0
3.0.19-202507102155.0
3.0.18
3.0.18-202507102155.0
3.0.18-202507102149.0
3.0.18-202507101839.0
3.0.18-202506111804.0
3.0.17
3.0.17-202505311612.0
3.0.16
3.0.16-202505301111.0
3.0.15
3.0.15-202505301049.0
3.0.15-202505292244.0
3.0.15-202505292221.0
3.0.15-202505292218.0
3.0.15-202505292215.0
3.0.15-202505292128.0
3.0.14
3.0.13
3.0.13-202505071649.0
3.0.12
3.0.12-202505071219.0
3.0.12-202504041046.0
3.0.12-202503231612.0
3.0.12-202503231604.0
3.0.11
3.0.11-202503231554.0
3.0.11-202503142005.0
3.0.10
3.0.9
3.0.9-202503031139.0
3.0.9-202503011638.0
3.0.9-202502271708.0
3.0.8
3.0.7
3.0.6
3.0.6-202502201131.0
3.0.6-202502151431.0
3.0.6-202502121519.0
3.0.6-202502110752.0
3.0.5
3.0.4
3.0.4-202501021622.0
3.0.4-202412301709.0
3.0.3
3.0.3-20241230163538.0
3.0.3-202412301657.0
3.0.2
3.0.1
A C/C++ source-to-source compiler written in Typescript
github.com/specs-feup/clava
specs-feup/clava
@specs-feup/clava
/
src-api
/
clava
/
stats
/
OpsBlock.ts
18 lines
(13 loc)
•
298 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
OpsCost
from
"./OpsCost.js"
;
export
default
class
OpsBlock
{
id
:
string
;
private
cost =
new
OpsCost
();
nestedOpsBlocks
:
OpsBlock
[] = [];
repetitions
:
string
=
"1"
;
constructor
(
id
:
string
) {
this
.
id
= id; }
add
(
opsId
:
string
) {
this
.
cost
.
increment
(opsId); } }