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);
 }
Exemplo n.º 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());
 }
Exemplo n.º 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);
 }
Exemplo n.º 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());
 }
Exemplo n.º 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);
 }