internal InternalStructMethodCollectionWithCodeAnalysis(InternalStructTypeWithCodeAnalysis <TStruct> structType)
 {
     this.structType          = structType;
     explicitInterfaceMethods = new StructTypeMemberListWrapper <TStruct, ExplicitInterfaceMethodWithCodeAnalysis, MethodDeclarationSyntax>(
         structType.InternalNode,
         () => new ExplicitInterfaceMethodWithCodeAnalysis(),
         syntax => syntax.ExplicitInterfaceSpecifier != null);
     methods = new StructTypeMemberListWrapper <TStruct, StructMethodWithCodeAnalysis, MethodDeclarationSyntax>(
         structType.InternalNode,
         () => new StructMethodWithCodeAnalysis(),
         syntax => syntax.ExplicitInterfaceSpecifier == null);
 }
示例#2
0
 internal InternalStructFieldCollectionWithCodeAnalysis(InternalStructTypeWithCodeAnalysis <TStruct> structType)
 {
     this.structType = structType;
     constants       = new StructTypeMemberListWrapper <TStruct, StructConstantWithCodeAnalysis, FieldDeclarationSyntax>(
         structType.InternalNode,
         () => new StructConstantWithCodeAnalysis(),
         syntax => syntax.IsConstant());
     fields = new StructTypeMemberListWrapper <TStruct, StructFieldWithCodeAnalysis, FieldDeclarationSyntax>(
         structType.InternalNode,
         () => new StructFieldWithCodeAnalysis(),
         syntax => !syntax.IsConstant());
 }
示例#3
0
 internal InternalStructNestedStructCollectionWithCodeAnalysis(InternalStructTypeWithCodeAnalysis <TStruct> structType)
 {
     this.structType = structType;
     structs         = new StructTypeMemberListWrapper <TStruct, StructNestedStructWithCodeAnalysis, StructDeclarationSyntax>(
         structType.InternalNode,
         () => new StructNestedStructWithCodeAnalysis(),
         syntax => !syntax.IsPartial());
     partialStructs = new StructTypeMemberListWrapper <TStruct, StructNestedPartialStructWithCodeAnalysis, StructDeclarationSyntax>(
         structType.InternalNode,
         () => new StructNestedPartialStructWithCodeAnalysis(),
         StructDeclarationSyntaxExtensions.IsPartial);
 }
示例#4
0
 internal InternalStructEventCollectionWithCodeAnalysis(InternalStructTypeWithCodeAnalysis <TStruct> structType)
 {
     this.structType = structType;
     eventProperties = new StructTypeMemberListWrapper <TStruct, StructEventPropertyWithCodeAnalysis, EventDeclarationSyntax>(
         structType.InternalNode,
         () => new StructEventPropertyWithCodeAnalysis(),
         syntax => syntax.ExplicitInterfaceSpecifier == null);
     explicitInterfaceEvents = new StructTypeMemberListWrapper <TStruct, ExplicitInterfaceEventWithCodeAnalysis, EventDeclarationSyntax>(
         structType.InternalNode,
         () => new ExplicitInterfaceEventWithCodeAnalysis(),
         syntax => syntax.ExplicitInterfaceSpecifier != null);
     events = new StructTypeMemberListWrapper <TStruct, StructEventWithCodeAnalysis, EventFieldDeclarationSyntax>(
         structType.InternalNode,
         () => new StructEventWithCodeAnalysis());
 }
 internal InternalStructPropertyCollectionWithCodeAnalysis(InternalStructTypeWithCodeAnalysis <TStruct> structType)
 {
     this.structType             = structType;
     explicitInterfaceProperties = new StructPropertyListWrapper <TStruct, ExplicitInterfacePropertyWithCodeAnalysis>(
         structType.InternalNode,
         () => new ExplicitInterfacePropertyWithCodeAnalysis(),
         syntax => syntax.IsExplicitInterfaceProperty());
     autoProperties = new StructPropertyListWrapper <TStruct, StructAutoPropertyWithCodeAnalysis>(
         structType.InternalNode,
         () => new StructAutoPropertyWithCodeAnalysis(),
         syntax => syntax.IsAutoProperty());
     lambdaProperties = new StructPropertyListWrapper <TStruct, StructLambdaPropertyWithCodeAnalysis>(
         structType.InternalNode,
         () => new StructLambdaPropertyWithCodeAnalysis(),
         syntax => syntax.IsLambdaProperty());
     properties = new StructPropertyListWrapper <TStruct, StructPropertyWithCodeAnalysis>(
         structType.InternalNode,
         () => new StructPropertyWithCodeAnalysis(),
         syntax => syntax.IsProperty());
 }
示例#6
0
 internal InternalStructNestedClassCollectionWithCodeAnalysis(InternalStructTypeWithCodeAnalysis <TStruct> structType)
 {
     this.structType = structType;
     classes         = new StructTypeMemberListWrapper <TStruct, StructNestedClassWithCodeAnalysis, ClassDeclarationSyntax>(
         structType.InternalNode,
         () => new StructNestedClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsClass);
     abstractClasses = new StructTypeMemberListWrapper <TStruct, StructNestedAbstractClassWithCodeAnalysis, ClassDeclarationSyntax>(
         structType.InternalNode,
         () => new StructNestedAbstractClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsAbstractClass);
     sealedClasses = new StructTypeMemberListWrapper <TStruct, StructNestedSealedClassWithCodeAnalysis, ClassDeclarationSyntax>(
         structType.InternalNode,
         () => new StructNestedSealedClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsSealedClass);
     staticClasses = new StructTypeMemberListWrapper <TStruct, StructNestedStaticClassWithCodeAnalysis, ClassDeclarationSyntax>(
         structType.InternalNode,
         () => new StructNestedStaticClassWithCodeAnalysis(),
         ClassDeclarationSyntaxExtensions.IsStaticClass);
     partialClasses = StructNestedPartialClassCollectionWithCodeAnalysis.Create(structType);
 }
 internal InternalNestedStructWithCodeAnalysis(TStruct @struct)
 {
     structType = new InternalStructTypeWithCodeAnalysis <TStruct>(@struct);
 }