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