コード例 #1
0
 public Scope CreateScope(Scope TopScope)
 {
     TreeConverter.base_scope bs2 = null;
     if (TopScope != null)
     {
         bs2 = TopScope.internal_scope;
     }
     return(new Scope(bs2, TopScope));
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #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));
 }
コード例 #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;
 }
コード例 #7
0
 public Scope(TreeConverter.base_scope us, Scope top_scope)
 {
     _sc        = new TreeConverter.function_scope(us);
     _top_scope = top_scope;
 }
コード例 #8
0
 public ClassMethodScope(TreeConverter.base_scope ts, TreeConverter.base_scope cns)
 {
     _sc = new TreeConverter.method_scope(ts, cns);
 }
コード例 #9
0
ファイル: scope_wrap.cs プロジェクト: lisiynos/pascalabcnet
		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);
		}
コード例 #10
0
ファイル: scope_wrap.cs プロジェクト: lisiynos/pascalabcnet
		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);
		}