Skip to content

Commit

Permalink
Allow use of shared source in Azure.Core
Browse files Browse the repository at this point in the history
  • Loading branch information
annelo-msft committed Aug 9, 2023
1 parent 36599b0 commit e3125d1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ static void CheckType(ISymbolAnalysisContext context, ITypeSymbol type, ISymbol
}
}

if (IsAzureCore(context.Symbol.ContainingAssembly))
{
return;
}

switch (context.Symbol)
{
case IParameterSymbol parameterSymbol:
Expand All @@ -77,5 +82,10 @@ static void CheckType(ISymbolAnalysisContext context, ITypeSymbol type, ISymbol
break;
}
}

private bool IsAzureCore(IAssemblySymbol assembly)
{
return assembly.Name.Equals("Azure.Core");
}
}
}

0 comments on commit e3125d1

Please sign in to comment.