예제 #1
0
        internal BytecodeToken ReadRef(Func <UnPackageItem, string> func)
        {
            int           index = _reader.ReadInt32();
            UnPackageItem item  = _package.ResolveClassItem(index);

            if (item == null)
            {
                return(ErrToken("// unresolved reference " + index));
            }
            return(Token(func(item)));
        }
예제 #2
0
 internal UnClass(UnExport self, int superIndex, UnPackageItem outerInstance, byte[] bytecode, FlagValues flags,
                  UnPackageItem defaults, string config, List <string> hideCategories, List <UnPackageItem> interfaces)
     : base(self, superIndex, bytecode)
 {
     _outerInstance  = outerInstance;
     _flags          = flags;
     _defaults       = defaults;
     _config         = config;
     _hideCategories = hideCategories;
     _interfaces     = interfaces;
 }
예제 #3
0
 protected UnContainer(UnExport self, int superIndex, byte[] bytecode)
     : base(self, bytecode)
 {
     _super = superIndex == 0 ? null : _self.Package.ResolveClassItem(superIndex);
 }
예제 #4
0
 public UnClassClassProperty(UnExport export, int arraySize, FlagValues flags, int category, UnPackageItem type1, UnPackageItem type2, short repOffset)
     : base(export, arraySize, flags, category, repOffset)
 {
     Type1 = type1;
     Type2 = type2;
 }
예제 #5
0
 public UnTypedClassProperty(UnExport export, int arraySize, FlagValues flags, int category, UnPackageItem type, short repOffset)
     : base(export, arraySize, flags, category, repOffset)
 {
     Type = type;
 }
예제 #6
0
 public UnTypedClassProperty(UnExport export, int arraySize, FlagValues flags, int category, UnPackageItem type, short repOffset)
     : base(export, arraySize, flags, category, repOffset)
 {
     Type = type;
 }
예제 #7
0
 public UnClassClassProperty(UnExport export, int arraySize, FlagValues flags, int category, UnPackageItem type1, UnPackageItem type2, short repOffset)
     : base(export, arraySize, flags, category, repOffset)
 {
     Type1 = type1;
     Type2 = type2;
 }
예제 #8
0
 protected UnContainer(UnExport self, int superIndex, byte[] bytecode)
     : base(self, bytecode)
 {
     _super = superIndex == 0 ? null : _self.Package.ResolveClassItem(superIndex);
 }
예제 #9
0
 internal UnClass(UnExport self, int superIndex, UnPackageItem outerInstance, byte[] bytecode, FlagValues flags, 
     UnPackageItem defaults, string config, List<string> hideCategories, List<UnPackageItem> interfaces)
     : base(self, superIndex, bytecode)
 {
     _outerInstance = outerInstance;
     _flags = flags;
     _defaults = defaults;
     _config = config;
     _hideCategories = hideCategories;
     _interfaces = interfaces;
 }