Exemple #1
0
 internal InternalNestedStaticClassMethodCollectionWithCodeAnalysis(
     InternalNestedStaticClassWithCodeAnalysis <TStaticClass> type)
 {
     this.type = type;
     methods   = new ClassMemberListWrapper <TStaticClass, NestedStaticClassMethodWithCodeAnalysis, MethodDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassMethodWithCodeAnalysis());
 }
Exemple #2
0
 internal InternalNestedStaticClassEventCollectionWithCodeAnalysis(
     InternalNestedStaticClassWithCodeAnalysis <TStaticClass> type)
 {
     this.type = type;
     events    = new ClassMemberListWrapper <TStaticClass, NestedStaticClassEventWithCodeAnalysis, EventFieldDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassEventWithCodeAnalysis());
     eventProperties = new ClassMemberListWrapper <TStaticClass, NestedStaticClassEventPropertyWithCodeAnalysis, EventDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassEventPropertyWithCodeAnalysis());
 }
Exemple #3
0
 internal InternalNestedStaticClassNestedStructCollectionWithCodeAnalysis(
     InternalNestedStaticClassWithCodeAnalysis <TStaticClass> type)
 {
     this.type = type;
     structs   = new ClassMemberListWrapper <TStaticClass, NestedStaticClassNestedStructWithCodeAnalysis, StructDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassNestedStructWithCodeAnalysis(),
         syntax => !syntax.IsPartial());
     partialStructs = new ClassMemberListWrapper <TStaticClass, NestedStaticClassNestedPartialStructWithCodeAnalysis, StructDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassNestedPartialStructWithCodeAnalysis(),
         StructDeclarationSyntaxExtensions.IsPartial);
 }
 internal InternalNestedStaticClassFieldCollectionWithCodeAnalysis(
     InternalNestedStaticClassWithCodeAnalysis <TStaticClass> type)
 {
     this.type = type;
     constants = new ClassMemberListWrapper <TStaticClass, NestedStaticClassConstantWithCodeAnalysis, FieldDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassConstantWithCodeAnalysis(),
         syntax => syntax.IsConstant());
     fields = new ClassMemberListWrapper <TStaticClass, NestedStaticClassFieldWithCodeAnalysis, FieldDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassFieldWithCodeAnalysis(),
         syntax => !syntax.IsConstant());
 }
 internal InternalNestedStaticClassPropertyCollectionWithCodeAnalysis(
     InternalNestedStaticClassWithCodeAnalysis <TClass> classType)
 {
     this.classType = classType;
     properties     = new ClassPropertyListWrapper <TClass, NestedStaticClassPropertyWithCodeAnalysis>(
         classType.InternalNode,
         () => new NestedStaticClassPropertyWithCodeAnalysis(),
         syntax => syntax.IsProperty());
     autoProperties = new ClassPropertyListWrapper <TClass, NestedStaticClassAutoPropertyWithCodeAnalysis>(
         classType.InternalNode,
         () => new NestedStaticClassAutoPropertyWithCodeAnalysis(),
         syntax => syntax.IsAutoProperty());
     lambdaProperties = new ClassPropertyListWrapper <TClass, NestedStaticClassLambdaPropertyWithCodeAnalysis>(
         classType.InternalNode,
         () => new NestedStaticClassLambdaPropertyWithCodeAnalysis(),
         syntax => syntax.IsLambdaProperty());
 }
 internal InternalNestedStaticClassNestedClassCollectionWithCodeAnalysis(
     InternalNestedStaticClassWithCodeAnalysis <TStaticClass> type)
 {
     this.type = type;
     classes   = new ClassMemberListWrapper <TStaticClass, NestedStaticClassNestedClassWithCodeAnalysis, ClassDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassNestedClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsClass);
     abstractClasses = new ClassMemberListWrapper <TStaticClass, NestedStaticClassNestedAbstractClassWithCodeAnalysis, ClassDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassNestedAbstractClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsAbstractClass);
     sealedClasses = new ClassMemberListWrapper <TStaticClass, NestedStaticClassNestedSealedClassWithCodeAnalysis, ClassDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassNestedSealedClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsSealedClass);
     staticClasses = new ClassMemberListWrapper <TStaticClass, NestedStaticClassNestedStaticClassWithCodeAnalysis, ClassDeclarationSyntax>(
         type.InternalNode,
         () => new NestedStaticClassNestedStaticClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsStaticClass);
     partialClasses = NestedStaticClassNestedPartialClassCollectionWithCodeAnalysis.Create(type);
 }