Exemple #1
0
 public FileClass(ContextFile fileContext, FileMutilType fmt)
 {
     this.FileContext = fileContext;
     ClassSection     = fmt.Classes[0];
     ImporteSection   = fmt.ImporteSection;
     Proces           = fmt.Proces;
     UseSection       = fmt.UseSection;
     Constructors     = fmt.Constructors;
     if (fmt.Dimes.Count > 0)
     {
         DimSection = fmt.Dimes[0];
     }
     if (fmt.Propertieses.Count > 0)
     {
         PropertiesesSection = fmt.Propertieses[0];
     }
 }
Exemple #2
0
        public ClassAST(FileAST astFile, SectionNameRaw nameSection, SectionExtendsRaw extendsSection
                        , SectionPropertiesRaw propertiesSection)
            : base(astFile)
        {
            this.ClassContext = new ContextClass(this.FileContext);
            ClassNameSection  = new SectionClassName(nameSection);
            Constructors      = new List <ProcConstructorBase>();
            Methods           = new List <ProcMethod>();


            Extends = new SectionExtendsClass(this, extendsSection);

            if (propertiesSection != null)
            {
                Properties = new SectionPropertiesClass(this, propertiesSection);
            }
        }