1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| Quintiq file version 2.0
| #parent: #root
| MethodOverride CopyTo (LibOpt_Run run) as LibOpt_Scope
| {
| TextBody:
| [*
| result := LibOpt_Scope::Create( run );
|
| if( result.istype( LibOpt_ScopeFat ) )
| {
| result_fat := result.astype( LibOpt_ScopeFat );
| traverse( this, ScopeElementOnScope, seos )
| {
| se := seos.ScopeElement();
| se.ScopeElementOnScope( relnew,
| Scope := result_fat,
| Group := seos.Group(),
| Comment := seos.Comment() );
| }
| }
| else
| {
| traverse( this, ScopeElementOnScope, seos )
| {
| result.Add( seos.ScopeElement(), seos.Group(), seos.Comment() );
| }
| }
|
| return result;
| *]
| }
|
|