Exemple #1
0
 public ModuleContents(SwiftName name, int sizeofMachinePointer)
 {
     Name                      = Ex.ThrowOnNull(name, nameof(name));
     Classes                   = new ClassInventory(sizeofMachinePointer);
     Functions                 = new FunctionInventory(sizeofMachinePointer);
     Variables                 = new VariableInventory(sizeofMachinePointer);
     WitnessTables             = new WitnessInventory(sizeofMachinePointer);
     Protocols                 = new ProtocolInventory(sizeofMachinePointer);
     Extensions                = new FunctionInventory(sizeofMachinePointer);
     MetadataFieldDescriptor   = new List <TLMetadataDescriptor> ();
     MetadataBuiltInDescriptor = new List <TLMetadataDescriptor> ();
     PropertyDescriptors       = new VariableInventory(sizeofMachinePointer);
     ExtensionDescriptors      = new List <TLPropertyDescriptor> ();
 }
Exemple #2
0
 public ClassContents(SwiftClassName className, int sizeofMachiinePointer)
 {
     this.sizeofMachinePointer = sizeofMachiinePointer;
     Constructors                    = new FunctionInventory(sizeofMachinePointer);
     ClassConstructor                = new FunctionInventory(sizeofMachinePointer);
     Methods                         = new FunctionInventory(sizeofMachinePointer);
     Properties                      = new PropertyInventory(sizeofMachinePointer);
     StaticProperties                = new PropertyInventory(sizeofMachiinePointer);
     PrivateProperties               = new PropertyInventory(sizeofMachinePointer);
     StaticPrivateProperties         = new PropertyInventory(sizeofMachinePointer);
     Subscripts                      = new List <TLFunction> (sizeofMachinePointer);
     PrivateSubscripts               = new List <TLFunction> (sizeofMachinePointer);
     StaticFunctions                 = new FunctionInventory(sizeofMachinePointer);
     Destructors                     = new FunctionInventory(sizeofMachinePointer);
     WitnessTable                    = new WitnessInventory(sizeofMachinePointer);
     FunctionsOfUnknownDestination   = new List <TLFunction> ();
     DefinitionsOfUnknownDestination = new List <TLDefinition> ();
     Variables                       = new VariableInventory(sizeofMachinePointer);
     Initializers                    = new FunctionInventory(sizeofMachinePointer);
     Name = className;
     ProtocolConformanceDescriptors = new List <TLProtocolConformanceDescriptor> ();
     MethodDescriptors   = new FunctionInventory(sizeofMachinePointer);
     PropertyDescriptors = new List <TLPropertyDescriptor> ();
 }