Beispiel #1
0
        public ArgumentWithIncompatibleObjectTypeInspection(IDeclarationFinderProvider declarationFinderProvider, ISetTypeResolver setTypeResolver)
            : base(declarationFinderProvider)
        {
            _setTypeResolver = setTypeResolver;

            //This will most likely cause a runtime error. The exceptions are rare and should be refactored or made explicit with an @Ignore annotation.
            Severity = CodeInspectionSeverity.Error;
        }
Beispiel #2
0
 private static IEnumerable <IInspectionResult> InspectionResults(IVBE vbe, ISetTypeResolver setTypeResolver)
 {
     using (var state = MockParser.CreateAndParse(vbe))
     {
         var inspection = new ArgumentWithIncompatibleObjectTypeInspection(state, setTypeResolver);
         return(inspection.GetInspectionResults(CancellationToken.None));
     }
 }
        public SetAssignmentWithIncompatibleObjectTypeInspection(RubberduckParserState state, ISetTypeResolver setTypeResolver)
            : base(state)
        {
            _declarationFinderProvider = state;
            _setTypeResolver           = setTypeResolver;

            //This will most likely cause a runtime error. The exceptions are rare and should be refactored or made explicit with an @Ignore annotation.
            Severity = CodeInspectionSeverity.Error;
        }