chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Quintiq file version 2.0
#parent: #root
MethodOverride ScopeElementsConst (Type type) const declarative remote as constcontent owning LibOpt_ScopeElements
{
  TextBody:
  [*
    sss := constnull( LibOpt_ScopeShareds, owning, constcontent );
    if( type.Specializations( relsize ) = 0 )
    {
      type_name := type.Name();
      sss := selectset( this, ScopeSharedOnScope.ScopeShared, ss, ss.Type() = type_name );
    }
    else
    {
      typenames := LibOpt_Scope::GetTypeNames( type );
      sss := selectset( this, ScopeSharedOnScope.ScopeShared, ss, typenames.Find( ss.Type() ) >= 0 );
    }
    return selectset( sss, Elements.ScopeElement, se, true );
  *]
}