File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
RetailCoder.VBE/Inspections Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ public override IEnumerable<InspectionResultBase> GetInspectionResults()
2424 var interfaceMembers = UserDeclarations . FindInterfaceImplementationMembers ( ) ;
2525
2626 var issues = ( from item in UserDeclarations
27- where ! item . IsInspectionDisabled ( AnnotationName )
27+ where
28+ ! item . IsInspectionDisabled ( AnnotationName )
2829 && item . DeclarationType == DeclarationType . Parameter
30+ // ParamArray parameters do not allow an explicit "ByRef" parameter mechanism.
31+ && ! ( ( ParameterDeclaration ) item ) . IsParamArray
2932 && ! interfaceMembers . Select ( m => m . Scope ) . Contains ( item . ParentScope )
3033 let arg = item . Context as VBAParser . ArgContext
3134 where arg != null && arg . BYREF ( ) == null && arg . BYVAL ( ) == null
Original file line number Diff line number Diff line change 423423 <value >Deklariere explizit als 'Variant'</value >
424424 </data >
425425 <data name =" ImplicitByRefParameterQuickFix" xml : space =" preserve" >
426- <value >Über gebe den Parameter explizit als Referenz</value >
426+ <value >Parameter explizit als Referenz angeben </value >
427427 </data >
428428 <data name =" Inspections_DeclarationOf" xml : space =" preserve" >
429429 <value >Deklaration von</value >
You can’t perform that action at this time.
0 commit comments