示例#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");
 }
示例#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);
 }
示例#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));
 }
示例#6
0
 public ExplicitToStringWithoutOverrideAnalyzer(SemanticModelAnalysisContext context)
 {
     this.context        = context;
     this.typeInspection = new TypeInspection(context.SemanticModel);
 }