Esempio n. 1
0
 internal UsingValidator(StyleCopAddIn sourceAnalyzer, UsingSettings usingSettings, IEnumerable<UsingDirective> usingDirectives)
 {
     this.sourceAnalyzer = sourceAnalyzer;
     this.usingSettings = usingSettings;
     this.usingDirectives = usingDirectives.ToList();
 }
        /// <summary>
        /// Visits before the analysis.
        /// </summary>
        /// <param name="document">The document.</param>
        public override void VisitBeforeAnalysis(CodeDocument document)
        {
            this.usingDirectives = new List<UsingDirective>();

            this.usingSettings = new UsingSettings(this.SourceAnalyzer, document.Settings);
        }