@@ -37,9 +37,9 @@ public InstanceDp Get(
3737 case IMethodSymbol method :
3838 if ( method . MethodKind == MethodKind . Ordinary )
3939 {
40- var ordinal = attributes . GetAttribute ( setup . SemanticModel , setupAttributes , member , default ( int ? ) )
40+ var ordinal = attributes . GetAttribute ( setup . SemanticModel , setupAttributes , member , false , default ( int ? ) )
4141 ?? method . Parameters
42- . Select ( param => attributes . GetAttribute ( setup . SemanticModel , setupAttributes , param , default ( int ? ) ) )
42+ . Select ( param => attributes . GetAttribute ( setup . SemanticModel , setupAttributes , param , false , default ( int ? ) ) )
4343 . FirstOrDefault ( i => i . HasValue ) ;
4444
4545 if ( ordinal . HasValue )
@@ -53,7 +53,7 @@ public InstanceDp Get(
5353 case IFieldSymbol field :
5454 if ( field is { IsReadOnly : false , IsStatic : false , IsConst : false } )
5555 {
56- var ordinal = attributes . GetAttribute ( setup . SemanticModel , setupAttributes , member , default ( int ? ) ) ;
56+ var ordinal = attributes . GetAttribute ( setup . SemanticModel , setupAttributes , member , false , default ( int ? ) ) ;
5757 if ( field . IsRequired || ordinal . HasValue )
5858 {
5959 var type = field . Type . WithNullableAnnotation ( NullableAnnotation . NotAnnotated ) ;
@@ -63,7 +63,7 @@ public InstanceDp Get(
6363 ordinal ,
6464 new Injection (
6565 InjectionKind . Field ,
66- attributes . GetAttribute ( setup . SemanticModel , setup . TypeAttributes , field , typeConstructor . Construct ( setup , type ) ) ,
66+ attributes . GetAttribute ( setup . SemanticModel , setup . TypeAttributes , field , false , typeConstructor . Construct ( setup , type ) ) ,
6767 GetTagAttribute ( setup , field ) ) ) ) ;
6868 }
6969 }
@@ -73,7 +73,7 @@ public InstanceDp Get(
7373 case IPropertySymbol property :
7474 if ( property is { IsReadOnly : false , IsStatic : false , IsIndexer : false } )
7575 {
76- var ordinal = attributes . GetAttribute ( setup . SemanticModel , setupAttributes , member , default ( int ? ) ) ;
76+ var ordinal = attributes . GetAttribute ( setup . SemanticModel , setupAttributes , member , false , default ( int ? ) ) ;
7777 if ( ordinal . HasValue || property . IsRequired )
7878 {
7979 var type = property . Type . WithNullableAnnotation ( NullableAnnotation . NotAnnotated ) ;
@@ -83,7 +83,7 @@ public InstanceDp Get(
8383 ordinal ,
8484 new Injection (
8585 InjectionKind . Property ,
86- attributes . GetAttribute ( setup . SemanticModel , setup . TypeAttributes , property , typeConstructor . Construct ( setup , type ) ) ,
86+ attributes . GetAttribute ( setup . SemanticModel , setup . TypeAttributes , property , false , typeConstructor . Construct ( setup , type ) ) ,
8787 GetTagAttribute ( setup , property ) ) ) ) ;
8888 }
8989 }
@@ -117,7 +117,7 @@ public ImmutableArray<DpParameter> GetParameters(
117117 parameter ,
118118 new Injection (
119119 InjectionKind . Parameter ,
120- attributes . GetAttribute ( setup . SemanticModel , setup . TypeAttributes , parameter , typeConstructor . Construct ( setup , type ) ) ,
120+ attributes . GetAttribute ( setup . SemanticModel , setup . TypeAttributes , parameter , false , typeConstructor . Construct ( setup , type ) ) ,
121121 GetTagAttribute ( setup , parameter ) ) ) ) ;
122122 }
123123
@@ -145,7 +145,7 @@ private static IEnumerable<ISymbol> GetMembers(ITypeSymbol type)
145145 private object ? GetTagAttribute (
146146 MdSetup setup ,
147147 ISymbol member ) =>
148- attributes . GetAttribute ( setup . SemanticModel , setup . TagAttributes , member , default ( object ? ) )
148+ attributes . GetAttribute ( setup . SemanticModel , setup . TagAttributes , member , true , default ( object ? ) )
149149 ?? TryCreateTagOnSite ( setup , member ) ;
150150
151151 private object ? TryCreateTagOnSite (
0 commit comments