File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Rubberduck.Parsing/Symbols Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -529,10 +529,9 @@ private FunctionDeclaration UCaseFunction()
529
529
530
530
private static void AddParametersToAliasesFromReferencedFunctions ( List < FunctionDeclaration > functionAliases , List < Declaration > referencedFunctions )
531
531
{
532
- // ReSharper disable once PossibleInvalidCastExceptionInForeachLoop
533
532
foreach ( var alias in functionAliases )
534
533
{
535
- foreach ( var parameter in ( ( FunctionDeclaration ) referencedFunctions . Single ( s => s . IdentifierName == "_B_var_" + alias . IdentifierName ) ) . Parameters )
534
+ foreach ( var parameter in referencedFunctions . OfType < FunctionDeclaration > ( ) . Single ( s => s . IdentifierName == "_B_var_" + alias . IdentifierName ) . Parameters )
536
535
{
537
536
alias . AddParameter ( parameter ) ;
538
537
}
You can’t perform that action at this time.
0 commit comments