public override void Initialize(AnalysisContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            base.Initialize(context);

            context.RegisterSyntaxNodeAction(
                f => ThrowingOfNewNotImplementedExceptionRefactoring.Analyze(f, (ThrowStatementSyntax)f.Node),
                SyntaxKind.ThrowStatement);
        }
Пример #2
0
        private void AnalyzeThrowExpression(SyntaxNodeAnalysisContext context)
        {
            var throwExpression = (ThrowExpressionSyntax)context.Node;

            ThrowingOfNewNotImplementedExceptionRefactoring.Analyze(context, throwExpression);
        }
Пример #3
0
        private void AnalyzeThrowStatement(SyntaxNodeAnalysisContext context)
        {
            var throwStatement = (ThrowStatementSyntax)context.Node;

            ThrowingOfNewNotImplementedExceptionRefactoring.Analyze(context, throwStatement);
        }