Exemplo n.º 1
0
 public Scope CreateScope(Scope TopScope)
 {
     TreeConverter.base_scope bs2 = null;
     if (TopScope != null)
     {
         bs2 = TopScope.internal_scope;
     }
     return(new Scope(bs2, TopScope));
 }
Exemplo n.º 2
0
 public ClassMethodScope CreateClassMethodScope(Scope TopScope, Scope MyClass)
 {
     TreeConverter.base_scope bs2 = null;
     if (TopScope != null)
     {
         bs2 = TopScope.internal_scope;
     }
     TreeConverter.base_scope bs1 = null;
     if (MyClass != null)
     {
         bs1 = MyClass.internal_scope;
     }
     return(new ClassMethodScope(bs1, bs2));
 }
Exemplo n.º 3
0
 public UnitImplementationScope CreateUnitImplementationScope(Scope InterfaceScope, Scope[] UsedUnits)
 {
     TreeConverter.base_scope[] arr = new TreeConverter.base_scope[UsedUnits.Length];
     for (int i = 0; i < arr.Length; i++)
     {
         arr[i] = UsedUnits[i].internal_scope;
     }
     TreeConverter.interface_scope isc1 = null;
     if (InterfaceScope != null)
     {
         isc1 = (TreeConverter.interface_scope)InterfaceScope.internal_scope;
     }
     return(new UnitImplementationScope(isc1, arr));
 }
Exemplo n.º 4
0
 public ClassScope CreateClassScope(Scope TopScope, Scope BaseClass)
 {
     TreeConverter.base_scope bs1 = null;
     if (BaseClass != null)
     {
         bs1 = BaseClass.internal_scope;
     }
     TreeConverter.base_scope bs2 = null;
     if (TopScope != null)
     {
         bs2 = TopScope.internal_scope;
     }
     return(new ClassScope(bs1, bs2, BaseClass));
 }
Exemplo n.º 5
0
 public UnitInterfaceScope CreateUnitInterfaceScope(Scope[] UsedUnits)
 {
     TreeConverter.base_scope[] arr = new TreeConverter.base_scope[UsedUnits.Length];
     for (int i = 0; i < arr.Length; i++)
     {
         if (UsedUnits[i] != null)
         {
             arr[i] = UsedUnits[i].internal_scope;
         }
         else
         {
             arr[i] = null;
         }
     }
     return(new UnitInterfaceScope(arr));
 }
Exemplo n.º 6
0
 public ClassScope(TreeConverter.base_scope bts, TreeConverter.base_scope cs, Scope bcs)
 {
     _bcs = bcs;
     _ts  = new TreeConverter.type_scope(bts, cs);
     _sc  = _ts;
 }
Exemplo n.º 7
0
 public Scope(TreeConverter.base_scope us, Scope top_scope)
 {
     _sc        = new TreeConverter.function_scope(us);
     _top_scope = top_scope;
 }
Exemplo n.º 8
0
 public ClassMethodScope(TreeConverter.base_scope ts, TreeConverter.base_scope cns)
 {
     _sc = new TreeConverter.method_scope(ts, cns);
 }
Exemplo n.º 9
0
		public UnitImplementationScope CreateUnitImplementationScope(Scope InterfaceScope,Scope[] UsedUnits)
		{
			TreeConverter.base_scope[] arr=new TreeConverter.base_scope[UsedUnits.Length];
			for(int i=0;i<arr.Length;i++)
			{
				arr[i]=UsedUnits[i].internal_scope;
			}
			TreeConverter.interface_scope isc1=null;
			if (InterfaceScope!=null)
			{
				isc1=(TreeConverter.interface_scope)InterfaceScope.internal_scope;
			}
			return new UnitImplementationScope(isc1,arr);
		}
Exemplo n.º 10
0
		public UnitInterfaceScope CreateUnitInterfaceScope(Scope[] UsedUnits)
		{
			TreeConverter.base_scope[] arr=new TreeConverter.base_scope[UsedUnits.Length];
			for(int i=0;i<arr.Length;i++)
			{
				if (UsedUnits[i]!=null)
				{
					arr[i]=UsedUnits[i].internal_scope;
				}
				else
				{
					arr[i]=null;
				}
			}
			return new UnitInterfaceScope(arr);
		}