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