Пример #1
0
        private void RegisterAnalyzers(CompilationAnalysisContext context)
        {
            ArgumentAnalyzer           argumentAnalyzer   = new ArgumentAnalyzer();
            NameAnalyzer               nameAnalyzer       = new NameAnalyzer();
            FunctionReturnTypeAnalyzer returnTypeAnalyzer = new FunctionReturnTypeAnalyzer();

            argumentAnalyzer.ReportProblems(context, availableFunctions, calledFunctions);
            nameAnalyzer.ReportProblems(context, availableFunctions, calledFunctions);
            returnTypeAnalyzer.ReportProblems(context, availableFunctions, calledFunctions);
        }
Пример #2
0
 private void RegisterAnalyzers(CompilationAnalysisContext context)
 {
     NameAnalyzer.ReportProblems(context, availableFunctions, calledFunctions);
     ArgumentAnalyzer.ReportProblems(context, semanticModel, availableFunctions, calledFunctions);
     FunctionReturnTypeAnalyzer.ReportProblems(context, semanticModel, availableFunctions, calledFunctions);
 }