69 references to Write
Microsoft.CodeAnalysis (69)
CommandLine\SarifErrorLogger.cs (1)
108_writer.Write(pair.Key, pair.Value);
CommandLine\SarifV1ErrorLogger.cs (18)
37_writer.Write("$schema", "http://json.schemastore.org/sarif-1.0.0"); 38_writer.Write("version", "1.0.0"); 43_writer.Write("name", toolName); 44_writer.Write("version", toolAssemblyVersion.ToString()); 45_writer.Write("fileVersion", toolFileVersion); 46_writer.Write("semanticVersion", toolAssemblyVersion.ToString(fieldCount: 3)); 50_writer.Write("language", culture.Name); 62_writer.Write("ruleId", diagnostic.Id); 67_writer.Write("ruleKey", ruleKey); 70_writer.Write("level", GetLevel(diagnostic.Severity)); 75_writer.Write("message", message); 143_writer.Write("uri", GetUri(span.Path)); 161_writer.Write("id", descriptor.Id); 166_writer.Write("shortDescription", shortDescription); 172_writer.Write("fullDescription", fullDescription); 175_writer.Write("defaultLevel", GetLevel(descriptor.DefaultSeverity)); 179_writer.Write("helpUri", descriptor.HelpLinkUri); 186_writer.Write("category", descriptor.Category);
CommandLine\SarifV2ErrorLogger.cs (27)
46_writer.Write("$schema", "http://json.schemastore.org/sarif-2.1.0"); 47_writer.Write("version", "2.1.0"); 59_writer.Write("ruleId", diagnostic.Id); 63_writer.Write("level", GetLevel(diagnostic.Severity)); 69_writer.Write("text", message); 79_writer.Write("kind", "inSource"); 83_writer.Write("justification", justification); 104_writer.Write("suppressionType", suppressionType); 179_writer.Write("uri", GetUri(span.Path)); 195_writer.Write("analyzerExecutionTime", _totalAnalyzerExecutionTime); 202_writer.Write("columnKind", "utf16CodeUnits"); 214_writer.Write("name", _toolName); 215_writer.Write("version", _toolFileVersion); 216_writer.Write("dottedQuadFileVersion", _toolAssemblyVersion.ToString()); 217_writer.Write("semanticVersion", _toolAssemblyVersion.ToString(fieldCount: 3)); 221_writer.Write("language", _culture.Name); 242_writer.Write("id", descriptor.Id); 248_writer.Write("text", shortDescription); 256_writer.Write("text", fullDescription); 264_writer.Write("helpUri", descriptor.HelpLinkUri); 285_writer.Write("category", descriptor.Category); 290_writer.Write("isEverSuppressed", "true"); 310_writer.Write("executionTimeInSeconds", executionTime); 313_writer.Write("executionTimeInPercentage", executionPercentage); 394_writer.Write("id", id); 409_writer.Write("level", level); 439_writer.Write("level", defaultLevel);
Compilation\DeterministicKeyBuilder.cs (23)
58writer.Write(propertyName, filePath); 77writer.Write(name, EncodeByteArrayValue(value)); 105writer.Write("fullName", type.FullName); 108writer.Write("assemblyName", type.Assembly.FullName); 109writer.Write("mvid", GetGuidValue(type.Assembly.ManifestModule.ModuleVersionId)); 240writer.Write("compilerVersion", compilerVersion); 243writer.Write("runtimeVersion", runtimeVersion); 245writer.Write("frameworkDescription", RuntimeInformation.FrameworkDescription); 246writer.Write("osDescription", RuntimeInformation.OSDescription); 280writer.Write("encodingName", sourceText.Encoding?.EncodingName); 353writer.Write("name", peReader.GetString(assemblyDef.Name)); 360writer.Write("name", peReader.GetString(moduleDef.Name)); 363writer.Write("mvid", GetGuidValue(moduleMetadata.GetModuleVersionId())); 414writer.Write("outputNameOverride", options.OutputNameOverride); 416writer.Write("pdbChecksumAlgorithm", options.PdbChecksumAlgorithm.Name); 417writer.Write("runtimeMetadataVersion", options.RuntimeMetadataVersion); 443writer.Write("moduleName", options.ModuleName); 444writer.Write("scriptClassName", options.ScriptClassName); 445writer.Write("mainTypeName", options.MainTypeName); 447writer.Write("cryptoKeyFile", options.CryptoKeyFile); 485writer.Write("nondeterministicMvid", GetGuidValue(Guid.NewGuid())); 521writer.Write("language", parseOptions.Language); 528writer.Write(key, features[key]);