You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very helpful to be able to restrict dependencies between types or namespaces. For example: roslyn analyzer can disallow to use workspaces assembly from analyzers.
But now Roslyn hasn't API to analyze source code's dependencies (: So, I've made my analyzer and I'm glad to share DependenciesAnalyzer with you.
I think it would be great if it were added to Roslyn.
Unfortunately indexer propery and operators are not supported. Because there is no way to get symbol for: indexer (ConditionalAccessExpressionSyntax), true, false and implicit conversion operators.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be very helpful to be able to restrict dependencies between types or namespaces. For example: roslyn analyzer can disallow to use workspaces assembly from analyzers.
But now Roslyn hasn't API to analyze source code's dependencies (: So, I've made my analyzer and I'm glad to share DependenciesAnalyzer with you.
I think it would be great if it were added to Roslyn.
Supported syntax references: TypeSyntax, LiteralExpressionSyntax, InterpolatedStringExpressionSyntax.
Supported symbol references: INamespaceSymbol, ITypeSymbol, IFieldSymbol, IPropertySymbol, IEventSymbol, IMethodSymbol, IParameterSymbol, ILocalSymbol, IDiscardSymbol.
Unfortunately indexer propery and operators are not supported. Because there is no way to get symbol for: indexer (ConditionalAccessExpressionSyntax), true, false and implicit conversion operators.
Beta Was this translation helpful? Give feedback.
All reactions