示例#1
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);
            }
        }
示例#2
0
 public ClassPropertyAST(SectionPropertiesClass sectionProperties, PropertyASTRaw raw)
 {
     ParentProperties = sectionProperties;
     Raw        = raw;
     ExpContext = new ContextExp(this.ParentProperties.PropertiesContext, null);
 }