Ejemplo n.º 1
0
 /// <summary>
 /// Get bcgov_Inspection from bcgov_inspectionchecklists
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='bcgovInspectionchecklistid'>
 /// key: bcgov_inspectionchecklistid of bcgov_inspectionchecklist
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MicrosoftDynamicsCRMbcgovInspection> GetAsync(this IInspection operations, string bcgovInspectionchecklistid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(bcgovInspectionchecklistid, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an inspection result.
 /// </summary>
 protected InspectionResultBase(IInspection inspection, QualifiedModuleName qualifiedName, ParserRuleContext context, Declaration declaration)
 {
     _inspection    = inspection;
     _qualifiedName = qualifiedName;
     _context       = context;
     _target        = declaration;
 }
Ejemplo n.º 3
0
        private void SerializeInspection(IInspection inspection, IFastJsonWriter writer)
        {
            switch (inspection)
            {
            case SimpleInspection simple:
                SerializeSimpleInspection(simple, writer);
                break;

            case MemoryInspection memory:
                SerializeMemoryInspection(memory, writer);
                break;

            case MemoryGraphInspection graph:
                SerializeMemoryGraphInspection(graph, writer);
                break;

            case InspectionGroup group:
                SerializeInspectionGroup(group, writer);
                break;

            default:
                writer.WriteValue("Unsupported inspection type: " + inspection.GetType().Name);
                break;
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates an inspection result.
 /// </summary>
 protected InspectionResultBase(IInspection inspection, QualifiedModuleName qualifiedName, ParserRuleContext context, CommentNode comment = null)
 {
     _inspection = inspection;
     _qualifiedName = qualifiedName;
     _context = context;
     _comment = comment;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates an inspection result.
 /// </summary>
 protected InspectionResultBase(IInspection inspection, QualifiedModuleName qualifiedName, ParserRuleContext context, CommentNode comment = null)
 {
     _inspection    = inspection;
     _qualifiedName = qualifiedName;
     _context       = context;
     _comment       = comment;
 }
 /// <summary>
 /// Get adoxio_Inspection from adoxio_enforcementactions
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='adoxioEnforcementactionid'>
 /// key: adoxio_enforcementactionid of adoxio_enforcementaction
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task<MicrosoftDynamicsCRMincident> GetAsync(this IInspection operations, string adoxioEnforcementactionid, IList<string> select = default(IList<string>), IList<string> expand = default(IList<string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(adoxioEnforcementactionid, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return _result.Body;
     }
 }
 public MultilineParameterInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new MakeSingleLineParameterQuickFix(Context, QualifiedSelection), 
     };
 }
 public DefaultProjectNameInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parseResult, ICodePaneWrapperFactory wrapperFactory)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new RenameProjectQuickFix(target.Context, target.QualifiedSelection, target, parseResult, wrapperFactory),
     };
 }
Ejemplo n.º 9
0
 public MoveFieldCloserToUsageInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parseResult, ICodePaneWrapperFactory wrapperFactory, IMessageBox messageBox)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new MoveFieldCloserToUsageQuickFix(target.Context, target.QualifiedSelection, target, parseResult, wrapperFactory, messageBox),
     };
 }
 public FunctionReturnValueNotUsedInspectionResult(
     IInspection inspection,
     ParserRuleContext context,
     QualifiedMemberName qualifiedName,
     Declaration target)
     : this(inspection, context, qualifiedName, new List <Tuple <ParserRuleContext, QualifiedSelection, Declaration> >(), target)
 {
 }
Ejemplo n.º 11
0
 public DefaultProjectNameInspectionResult(IInspection inspection, Declaration target, RubberduckParserState state)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new RenameProjectQuickFix(target.Context, target.QualifiedSelection, target, state),
     };
 }
 public ParameterCanBeByValInspectionResult(IInspection inspection, Declaration target, ParserRuleContext context, QualifiedMemberName qualifiedName)
     : base(inspection, qualifiedName.QualifiedModuleName, context, target)
 {
     _quickFixes = new[]
     {
         new PassParameterByValueQuickFix(Context, QualifiedSelection), 
     };
 }
Ejemplo n.º 13
0
 public EncapsulatePublicFieldInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parseResult, ICodePaneWrapperFactory wrapperFactory)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new EncapsulateFieldQuickFix(target.Context, target.QualifiedSelection, target, parseResult, wrapperFactory),
     };
 }
 public MultilineParameterInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new MakeSingleLineParameterQuickFix(Context, QualifiedSelection),
     };
 }
 public MoveFieldCloserToUsageInspectionResult(IInspection inspection, Declaration target, RubberduckParserState state, IMessageBox messageBox)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new MoveFieldCloserToUsageQuickFix(target.Context, target.QualifiedSelection, target, state, messageBox),
     };
 }
 public OptionExplicitInspectionResult(IInspection inspection, QualifiedModuleName qualifiedName) 
     : base(inspection, new CommentNode(string.Empty, Tokens.CommentMarker, new QualifiedSelection(qualifiedName, Selection.Home)))
 {
     _quickFixes = new[]
     {
         new OptionExplicitQuickFix(Context, QualifiedSelection), 
     };
 }
Ejemplo n.º 17
0
 public EncapsulatePublicFieldInspectionResult(IInspection inspection, Declaration target, RubberduckParserState state)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new EncapsulateFieldQuickFix(target.Context, target.QualifiedSelection, target, state),
     };
 }
 public EmptyStringLiteralInspectionResult(IInspection inspection, QualifiedContext <ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new[]
     {
         new RepaceEmptyStringLiteralStatementQuickFix(Context, QualifiedSelection),
     };
 }
 public OptionExplicitInspectionResult(IInspection inspection, QualifiedModuleName qualifiedName)
     : base(inspection, new CommentNode(string.Empty, Tokens.CommentMarker, new QualifiedSelection(qualifiedName, Selection.Home)))
 {
     _quickFixes = new[]
     {
         new OptionExplicitQuickFix(Context, QualifiedSelection),
     };
 }
 public MoveFieldCloserToUsageInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parseResult, ICodePaneWrapperFactory wrapperFactory, IMessageBox messageBox)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new MoveFieldCloserToUsageQuickFix(target.Context, target.QualifiedSelection, target, parseResult, wrapperFactory, messageBox),
     };
 }
Ejemplo n.º 21
0
 public AssignedByValParameterInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new PassParameterByReferenceQuickFix(target.Context, QualifiedSelection),
     };
 }
 public ParameterCanBeByValInspectionResult(IInspection inspection, Declaration target, ParserRuleContext context, QualifiedMemberName qualifiedName)
     : base(inspection, qualifiedName.QualifiedModuleName, context, target)
 {
     _quickFixes = new[]
     {
         new PassParameterByValueQuickFix(Context, QualifiedSelection),
     };
 }
Ejemplo n.º 23
0
 public IdentifierNameInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parserState, IMessageBox messageBox,
                                       IPersistanceService <CodeInspectionSettings> settings)
     : base(inspection, target)
 {
     _parserState = parserState;
     _messageBox  = messageBox;
     _settings    = settings;
 }
 public EmptyStringLiteralInspectionResult(IInspection inspection, QualifiedContext<ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new[]
     {
         new RepaceEmptyStringLiteralStatementQuickFix(Context, QualifiedSelection), 
     };
 }
 public DefaultProjectNameInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parseResult, ICodePaneWrapperFactory wrapperFactory)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new RenameProjectQuickFix(target.Context, target.QualifiedSelection, target, parseResult, wrapperFactory),
     };
 }
Ejemplo n.º 26
0
        public static IInspector GetInspector(IInspection inspection, params IInspection[] otherInspections)
        {
            var inspectionProviderMock = new Mock <IInspectionProvider>();

            inspectionProviderMock.Setup(provider => provider.Inspections).Returns(otherInspections.Union(new[] { inspection }));

            return(new Inspector(GetSettings(inspection), inspectionProviderMock.Object));
        }
 public AssignedByValParameterInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
     _quickFixes = new[]
     {
         new PassParameterByReferenceQuickFix(target.Context, QualifiedSelection),
     };
 }
 public UseMeaningfulNameInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parserState, ICodePaneWrapperFactory wrapperFactory, IMessageBox messageBox)
     : base(inspection, target)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RenameDeclarationQuickFix(target.Context, target.QualifiedSelection, target, parserState, wrapperFactory, messageBox),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public VariableTypeNotDeclaredInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new DeclareAsExplicitVariantQuickFix(Context, QualifiedSelection), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public ImplicitActiveSheetReferenceInspectionResult(IInspection inspection, string result, ParserRuleContext context, QualifiedModuleName qualifiedName)
     : base(inspection, qualifiedName, context)
 {
     _result = result;
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new IgnoreOnceQuickFix(context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public UseMeaningfulNameInspectionResult(IInspection inspection, Declaration target, RubberduckParserState parserState, IMessageBox messageBox)
     : base(inspection, target)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RenameDeclarationQuickFix(target.Context, target.QualifiedSelection, target, parserState, messageBox),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
 public ObsoleteLetStatementUsageInspectionResult(IInspection inspection, QualifiedContext<ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RemoveExplicitLetStatementQuickFix(Context, QualifiedSelection), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
        public ImplicitDefaultMemberAssignmentInspectionResult(IInspection inspection, IdentifierReference reference)
            : base(inspection, reference.QualifiedModuleName, reference.Context)
        {
            var module = reference.Declaration.AsTypeDeclaration as ClassModuleDeclaration;

            System.Diagnostics.Debug.Assert(module != null);
            _assignedIdentifier = reference.Declaration.IdentifierName;
            _defaultMemberOf    = module.IdentifierName;
        }
 public ImplicitPublicMemberInspectionResult(IInspection inspection, QualifiedContext <ParserRuleContext> qualifiedContext, Declaration item)
     : base(inspection, item)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new SpecifyExplicitPublicModifierQuickFix(qualifiedContext.Context, QualifiedSelection),
         new IgnoreOnceQuickFix(qualifiedContext.Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
 public MultipleDeclarationsInspectionResult(IInspection inspection, QualifiedContext<ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new SplitMultipleDeclarationsQuickFix(Context, QualifiedSelection), 
         new IgnoreOnceQuickFix(qualifiedContext.Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
Ejemplo n.º 36
0
        public static IConfigurationService <CodeInspectionSettings> GetSettings(IInspection inspection)
        {
            var settings = new Mock <IConfigurationService <CodeInspectionSettings> >();
            var config   = GetTestConfig(inspection);

            settings.Setup(x => x.Read()).Returns(config);

            return(settings.Object);
        }
 public FunctionReturnValueNotUsedInspectionResult(
     IInspection inspection,
     ParserRuleContext context,
     QualifiedMemberName qualifiedName,
     IEnumerable <string> returnStatements,
     Declaration target)
     : this(inspection, context, qualifiedName, returnStatements, new List <Tuple <ParserRuleContext, QualifiedSelection, IEnumerable <string> > >(), target)
 {
 }
Ejemplo n.º 38
0
 public VariableTypeNotDeclaredInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new DeclareAsExplicitVariantQuickFix(Context, QualifiedSelection),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
Ejemplo n.º 39
0
 public MultipleDeclarationsInspectionResult(IInspection inspection, QualifiedContext <ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new SplitMultipleDeclarationsQuickFix(Context, QualifiedSelection),
         new IgnoreOnceQuickFix(qualifiedContext.Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
 public FunctionReturnValueNotUsedInspectionResult(
     IInspection inspection,
     ParserRuleContext context,
     QualifiedMemberName qualifiedName,
     IEnumerable<string> returnStatements,
     Declaration target)
     : this(inspection, context, qualifiedName, returnStatements, new List<Tuple<ParserRuleContext, QualifiedSelection, IEnumerable<string>>>(), target)
 {
 }
Ejemplo n.º 41
0
        private IEnumerable <IInspectionResult> InspectionResults(IInspection inspection, RubberduckParserState state)
        {
            if (inspection is IParseTreeInspection parseTreeInspection)
            {
                WalkTrees(parseTreeInspection, state);
            }

            return(inspection.GetInspectionResults(CancellationToken.None));
        }
 public ObsoleteGlobalInspectionResult(IInspection inspection, QualifiedContext <ParserRuleContext> context)
     : base(inspection, context.ModuleName, context.Context)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new ReplaceGlobalModifierQuickFix(Context, QualifiedSelection),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
 public EmptyStringLiteralInspectionResult(IInspection inspection, QualifiedContext <ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RepaceEmptyStringLiteralStatementQuickFix(Context, QualifiedSelection),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName)
     };
 }
 public ObsoleteLetStatementUsageInspectionResult(IInspection inspection, QualifiedContext <ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RemoveExplicitLetStatementQuickFix(Context, QualifiedSelection),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
 public ObsoleteCommentSyntaxInspectionResult(IInspection inspection, CommentNode comment) 
     : base(inspection, comment)
 {
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new ReplaceCommentMarkerQuickFix(Context, QualifiedSelection, comment),
         new RemoveCommentQuickFix(Context, QualifiedSelection, comment), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public ObjectVariableNotSetInspectionResult(IInspection inspection, IdentifierReference reference)
     :base(inspection, reference.QualifiedModuleName, reference.Context)
 {
     _reference = reference;
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new SetObjectVariableQuickFix(_reference), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName),
     };
 }
 public UntypedFunctionUsageInspectionResult(IInspection inspection, string result, QualifiedModuleName qualifiedName, ParserRuleContext context) 
     : base(inspection, qualifiedName, context)
 {
     _result = result;
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new UntypedFunctionUsageQuickFix(Context, QualifiedSelection), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public ImplicitByRefParameterInspectionResult(IInspection inspection, string identifierName, QualifiedContext<VBAParser.ArgContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _identifierName = identifierName;
     _quickFixes = new CodeInspectionQuickFix[]
         {
             new ImplicitByRefParameterQuickFix(Context, QualifiedSelection, InspectionsUI.ImplicitByRefParameterQuickFix, Tokens.ByRef), 
             new IgnoreOnceQuickFix(qualifiedContext.Context, QualifiedSelection, Inspection.AnnotationName), 
         };
 }
 public ObsoleteTypeHintInspectionResult(IInspection inspection, string result, QualifiedContext qualifiedContext, Declaration declaration)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _result = result;
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RemoveTypeHintsQuickFix(Context, QualifiedSelection, declaration), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public ImplicitVariantReturnTypeInspectionResult(IInspection inspection, string identifierName, QualifiedContext<ParserRuleContext> qualifiedContext)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context)
 {
     _identifierName = identifierName;
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new SetExplicitVariantReturnTypeQuickFix(Context, QualifiedSelection, InspectionsUI.SetExplicitVariantReturnTypeQuickFix), 
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public ParameterNotUsedInspectionResult(IInspection inspection, Declaration target,
     ParserRuleContext context, QualifiedMemberName qualifiedName, bool isInterfaceImplementation, 
     RemoveParametersRefactoring refactoring, RubberduckParserState parseResult)
     : base(inspection, qualifiedName.QualifiedModuleName, context, target)
 {
     _quickFixes = isInterfaceImplementation ? new CodeInspectionQuickFix[] {} : new CodeInspectionQuickFix[]
     {
         new RemoveUnusedParameterQuickFix(Context, QualifiedSelection, refactoring, parseResult),
         new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public IdentifierNotAssignedInspectionResult(IInspection inspection, Declaration target,
     ParserRuleContext context, QualifiedModuleName qualifiedName)
     : base(inspection, target, context, qualifiedName)
 {
     _target = target;
     _quickFixes = new CodeInspectionQuickFix[]
     {
         new RemoveUnassignedIdentifierQuickFix(Context, QualifiedSelection), 
         new IgnoreOnceQuickFix(context, QualifiedSelection, Inspection.AnnotationName), 
     };
 }
 public NonReturningFunctionInspectionResult(IInspection inspection,
     QualifiedContext<ParserRuleContext> qualifiedContext, 
     bool isInterfaceImplementation,
     Declaration target)
     : base(inspection, qualifiedContext.ModuleName, qualifiedContext.Context, target)
 {
     _quickFixes = isInterfaceImplementation 
         ? new CodeInspectionQuickFix[] { }
         : new CodeInspectionQuickFix[]
         {
             new ConvertToProcedureQuickFix(Context, QualifiedSelection),
             new IgnoreOnceQuickFix(Context, QualifiedSelection, Inspection.AnnotationName), 
         };
 }
       public ProcedureShouldBeFunctionInspectionResult(IInspection inspection, RubberduckParserState state, QualifiedContext<VBAParser.ArgListContext> argListQualifiedContext, QualifiedContext<VBAParser.SubStmtContext> subStmtQualifiedContext)
           : base(inspection,
                subStmtQualifiedContext.ModuleName,
                subStmtQualifiedContext.Context.ambiguousIdentifier())
        {
           _target = state.AllUserDeclarations.Single(declaration => 
               declaration.DeclarationType == DeclarationType.Procedure
               && declaration.Context == subStmtQualifiedContext.Context);

            _quickFixes = new[]
            {
                new ChangeProcedureToFunction(state, argListQualifiedContext, subStmtQualifiedContext, QualifiedSelection), 
            };
        }
 public FunctionReturnValueNotUsedInspectionResult(
     IInspection inspection,
     ParserRuleContext context,
     QualifiedMemberName qualifiedName,
     IEnumerable<string> returnStatements,
     IEnumerable<Tuple<ParserRuleContext, QualifiedSelection, IEnumerable<string>>> children,
     Declaration target)
     : base(inspection, qualifiedName.QualifiedModuleName, context, target)
 {
     var root = new ConvertToProcedureQuickFix(context, QualifiedSelection, returnStatements);
     var compositeFix = new CompositeCodeInspectionFix(root);
     children.ToList().ForEach(child => compositeFix.AddChild(new ConvertToProcedureQuickFix(child.Item1, child.Item2, child.Item3)));
     _quickFixes = new[]
     {
         compositeFix
     };
 }
Ejemplo n.º 56
0
 protected InspectionResultBase(IInspection inspection, Declaration target)
     : this(inspection, target.QualifiedName.QualifiedModuleName, target.Context)
 {
     _target = target;
 }
Ejemplo n.º 57
0
 /// <summary>
 /// Creates a comment inspection result.
 /// </summary>
 protected InspectionResultBase(IInspection inspection, CommentNode comment)
     : this(inspection, comment.QualifiedSelection.QualifiedName, null, comment)
 { }
 public WriteOnlyPropertyInspectionResult(IInspection inspection, Declaration target) 
     : base(inspection, target)
 {
 }
 public MultipleFolderAnnotationsInspectionResult(IInspection inspection, Declaration target) 
     : base(inspection, target)
 {
 }
 public SelfAssignedDeclarationInspectionResult(IInspection inspection, Declaration target)
     : base(inspection, target)
 {
 }