public Scope CreateScope(Scope TopScope) { TreeConverter.base_scope bs2 = null; if (TopScope != null) { bs2 = TopScope.internal_scope; } return(new Scope(bs2, TopScope)); }
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)); }
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)); }
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)); }
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)); }
public ClassScope(TreeConverter.base_scope bts, TreeConverter.base_scope cs, Scope bcs) { _bcs = bcs; _ts = new TreeConverter.type_scope(bts, cs); _sc = _ts; }
public Scope(TreeConverter.base_scope us, Scope top_scope) { _sc = new TreeConverter.function_scope(us); _top_scope = top_scope; }
public ClassMethodScope(TreeConverter.base_scope ts, TreeConverter.base_scope cns) { _sc = new TreeConverter.method_scope(ts, cns); }
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); }
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); }