示例#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);
 }