@@ -70,7 +70,7 @@ private static SourceTypeInfo PaseEnumType(INamedTypeSymbol typeSymbol, Cancella
70
70
foreach ( var field in typeSymbol . GetMembers ( ) . OfType < IFieldSymbol > ( ) )
71
71
{
72
72
cancellationToken . ThrowIfCancellationRequested ( ) ;
73
- typeInfo . Fields . Add ( CreateField ( field , cancellationToken ) ) ;
73
+ typeInfo . Fields . Add ( CreateField ( field ) ) ;
74
74
}
75
75
76
76
return typeInfo ;
@@ -143,13 +143,13 @@ private static SourceTypeInfo ParseClassType(INamedTypeSymbol typeSymbol, Cancel
143
143
foreach ( var field in members . OfType < IFieldSymbol > ( ) )
144
144
{
145
145
cancellationToken . ThrowIfCancellationRequested ( ) ;
146
- typeInfo . Fields . Add ( CreateField ( field , cancellationToken ) ) ;
146
+ typeInfo . Fields . Add ( CreateField ( field ) ) ;
147
147
}
148
148
149
149
foreach ( var property in members . OfType < IPropertySymbol > ( ) )
150
150
{
151
151
cancellationToken . ThrowIfCancellationRequested ( ) ;
152
- typeInfo . Properties . Add ( CreateProperty ( property , cancellationToken ) ) ;
152
+ typeInfo . Properties . Add ( CreateProperty ( property ) ) ;
153
153
}
154
154
155
155
foreach ( var constructor in typeSymbol . Constructors )
@@ -227,7 +227,7 @@ private static SourceConstructorInfo CreateConstructor(IMethodSymbol constructor
227
227
} ;
228
228
}
229
229
230
- private static SourcePropertyInfo CreateProperty ( IPropertySymbol property , CancellationToken cancellationToken )
230
+ private static SourcePropertyInfo CreateProperty ( IPropertySymbol property )
231
231
{
232
232
//string defaultValueExpression = property.IsRequired ? property.GetInitializeValue(cancellationToken) :null;
233
233
@@ -265,7 +265,7 @@ private static SourcePropertyInfo CreateProperty(IPropertySymbol property, Cance
265
265
} ;
266
266
}
267
267
268
- private static SourceFieldInfo CreateField ( IFieldSymbol field , CancellationToken cancellationToken )
268
+ private static SourceFieldInfo CreateField ( IFieldSymbol field )
269
269
{
270
270
//string defaultValueExpression = field.IsRequired ? field.GetInitializeValue(cancellationToken) : null;
271
271
0 commit comments