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