Example #1
0
 public ConsoleWriteAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context                = context;
     this.typeInspection         = new TypeInspection(context.SemanticModel);
     this.systemConsoleNamedType = context.SemanticModel.Compilation.GetTypeByMetadataName("System.Console");
     this.systemIOTextWriterType = context.SemanticModel.Compilation.GetTypeByMetadataName("System.IO.TextWriter");
 }
Example #2
0
 public StringConcatenationWithImplicitConversionAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context        = context;
     this.typeInspection = new TypeInspection(context.SemanticModel);
 }
 public InterpolatedStringImplicitToStringAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context        = context;
     this.typeInspection = new TypeInspection(context.SemanticModel);
 }
 public StringFormatArgumentImplicitToStringAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context        = context;
     this.typeInspection = new TypeInspection(context.SemanticModel);
 }
Example #5
0
 public StringFormatArgumentImplicitToStringAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context         = context;
     this.typeInspection  = new TypeInspection(context.SemanticModel);
     this.objectArrayType = context.SemanticModel.Compilation.CreateArrayTypeSymbol(context.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Object));
 }
Example #6
0
 public ExplicitToStringWithoutOverrideAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context        = context;
     this.typeInspection = new TypeInspection(context.SemanticModel);
 }