public ClassDefinition(string typeDeclarations, string typeContents, string extensions, string attributes, IStaticCodeElement owner) : base(typeDeclarations, typeContents, owner)
 {
     CodeUtils.GetElementDefinitions(typeContents, this);
     Members = Elements.OfType <MemberDefinition>().ToList();
     this.GetAttributes(attributes);
     this.GetExtensions(extensions);
 }
Ejemplo n.º 2
0
        public NamespaceDefinition(string name, string condensedContent, IStaticCodeElement owner)
        {
            Name             = name;
            Owner            = owner;
            Elements         = new List <IStaticCodeElement>();
            CondensedContent = condensedContent;
            var elements = CodeUtils.GetElementDefinitions(condensedContent, this);

            DefinedTypes = elements.OfType <TypeDefinition>().ToList();
        }