Sign in
eclipse
/
epsilon
/
org.eclipse.epsilon
/
refs/heads/hhoyos/iEvl
/
.
/
examples
/
org.eclipse.epsilon.examples.modelmodification
/
AddLeaves.eol
blob: 8bccfb4588b8c02581a0a958271d3c58bb76ce42 [
file
] [
log
] [
blame
]
var
i
:=
0
;
for
(
leaf
in
Tree
.
all
.
select
(
t
|
t
.
children
.
isEmpty
()))
{
var
child
:
new
Tree
;
i
:=
i
+
1
;
child
.
label
:=
'Added'
+
i
;
leaf
.
children
.
add
(
child
);
}
Model
.
store
(
Model
.
modelFile
+
'copy.model'
);