internal AbstractPartialClassWithCodeAnalysis(DocumentWithCodeAnalysis document)
        {
            var abstractType = new InternalAbstractTypeWithCodeAnalysis <AbstractPartialClassWithCodeAnalysis>(this);

            classType   = new AbstractClassWithCodeAnalysis(document, abstractType);
            partialType = new AbstractPartialTypeWithCodeAnalysis <AbstractPartialClassWithCodeAnalysis>(abstractType);
        }
        internal StaticClassNestedAbstractPartialClassWithCodeAnalysis()
        {
            var abstractType = new InternalAbstractTypeWithCodeAnalysis <StaticClassNestedAbstractPartialClassWithCodeAnalysis>(this);

            classType   = new StaticClassNestedAbstractClassWithCodeAnalysis();
            partialType = new AbstractPartialTypeWithCodeAnalysis <StaticClassNestedAbstractPartialClassWithCodeAnalysis>(
                abstractType);
        }
Esempio n. 3
0
 internal AbstractPartialTypeWithCodeAnalysis(InternalAbstractTypeWithCodeAnalysis <TClass> classType)
 {
     this.classType = classType;
     members        = classType.Members;
     classes        = new AbstractPartialClassNestedClassCollectionWithCodeAnalysis(classType.Classes);
     constructors   = new WrappedCollection <AbstractClassConstructorWithCodeAnalysis, AbstractPartialClassConstructorWithCodeAnalysis>(
         classType.Constructors,
         constructor => new AbstractPartialClassConstructorWithCodeAnalysis(constructor),
         constructor => constructor.Constructor,
         value => classType.Constructors = value);
     conversionOperators = new WrappedCollection <AbstractClassConversionOperatorWithCodeAnalysis, AbstractPartialClassConversionOperatorWithCodeAnalysis>(
         classType.ConversionOperators,
         parent => new AbstractPartialClassConversionOperatorWithCodeAnalysis(parent),
         child => child.ConversionOperator,
         value => classType.ConversionOperators = value);
     delegates = new WrappedCollection <AbstractClassNestedDelegateWithCodeAnalysis, AbstractPartialClassNestedDelegateWithCodeAnalysis>(
         classType.Delegates,
         parent => new AbstractPartialClassNestedDelegateWithCodeAnalysis(parent),
         child => child.Delegate,
         value => classType.Delegates = value);
     enums = new WrappedCollection <AbstractClassNestedEnumWithCodeAnalysis, AbstractPartialClassNestedEnumWithCodeAnalysis>(
         classType.Enums,
         parent => new AbstractPartialClassNestedEnumWithCodeAnalysis(parent),
         child => child.Enum,
         value => classType.Enums = value);
     events     = new AbstractPartialClassEventCollectionWithCodeAnalysis(classType.Events);
     fields     = new AbstractPartialClassFieldCollectionWithCodeAnalysis(classType.Fields);
     indexers   = new AbstractPartialClassIndexerCollectionWithCodeAnalysis(classType.Indexers);
     interfaces = new WrappedCollection <AbstractClassNestedInterfaceWithCodeAnalysis, AbstractPartialClassNestedInterfaceWithCodeAnalysis>(
         classType.Interfaces,
         parent => new AbstractPartialClassNestedInterfaceWithCodeAnalysis(parent),
         child => child.Interface,
         value => classType.Interfaces = value);
     methods           = new InternalAbstractPartialClassMethodCollectionWithCodeAnalysis <TClass>(classType.Type);
     operatorOverloads = new WrappedCollection <AbstractClassOperatorOverloadWithCodeAnalysis, AbstractPartialClassOperatorOverloadWithCodeAnalysis>(
         classType.OperatorOverloads,
         parent => new AbstractPartialClassOperatorOverloadWithCodeAnalysis(parent),
         child => child.OperatorOverload,
         value => classType.OperatorOverloads = value);
     properties = new AbstractPartialClassPropertyCollectionWithCodeAnalysis(classType.Properties);
     structs    = new AbstractPartialClassNestedStructCollectionWithCodeAnalysis(classType.Structs);
 }