Ejemplo n.º 1
0
 internal UsingValidator(StyleCopAddIn sourceAnalyzer, UsingSettings usingSettings, IEnumerable<UsingDirective> usingDirectives)
 {
     this.sourceAnalyzer = sourceAnalyzer;
     this.usingSettings = usingSettings;
     this.usingDirectives = usingDirectives.ToList();
 }
Ejemplo n.º 2
0
        /// <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);
        }