1 write to Diagnostics
Microsoft.CodeAnalysis (1)
Emit\Context.cs (1)
50Diagnostics = diagnostics;
28 references to Diagnostics
Microsoft.CodeAnalysis (28)
Emit\CommonPEModuleBuilder.cs (6)
379return Translate(CommonCorLibrary, context.Diagnostics); 474result.Add(new Cci.AssemblyReferenceAlias(alias, Translate(assembly, context.Diagnostics))); 496foreach (var aRef in GetAssemblyReferencesFromAddedModules(context.Diagnostics)) 524AddEmbeddedResourcesFromAddedModules(builder, context.Diagnostics); 697foreach (var embedded in EmbeddedTypesManagerOpt.GetTypes(context.Diagnostics, names)) 1128return GetSpecialType((SpecialType)platformType, (TSyntaxNode)context.SyntaxNode, context.Diagnostics);
Emit\EditAndContinue\DeletedMethodBody.cs (1)
92builder.EmitToken(hotReloadExceptionCtorDef.GetCciAdapter(), context.SyntaxNode!, context.Diagnostics);
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
492module.OnCreatedIndices(this.Context.Diagnostics); 844Context.Diagnostics.Add(messageProvider.CreateDiagnostic( 917translatedType = Context.Module.EncTranslateType(typeSymbol, Context.Diagnostics);
Emit\NoPia\CommonEmbeddedEvent.cs (1)
145return GetType((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, context.Diagnostics);
Emit\NoPia\CommonEmbeddedMember.cs (1)
101context.Diagnostics.AddRange(diagnostics);
Emit\NoPia\CommonEmbeddedParameter.cs (1)
203context.Diagnostics.AddRange(diagnostics);
Emit\NoPia\CommonEmbeddedType.cs (2)
240return GetBaseClass((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, context.Diagnostics); 542context.Diagnostics.AddRange(diagnostics);
PEWriter\MetadataWriter.cs (9)
1357this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.ERR_MetadataNameTooLong, location, name)); 1366this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.ERR_MetadataNameTooLong, location, path)); 1390this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.ERR_MetadataNameTooLong, location, namespaceName + "." + mangledTypeName)); 1400this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.WRN_PdbUsingNameTooLong, location, usingString)); 1412this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.WRN_PdbLocalNameTooLong, localDefinition.Location, name)); 2225var exportedTypes = module.GetExportedTypes(Context.Diagnostics); 3169this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.ERR_TooManyUserStrings, NoLocation.Singleton)); 3187this.Context.Diagnostics.Add(this.messageProvider.CreateDiagnostic(this.messageProvider.ERR_TooManyUserStrings, NoLocation.Singleton)); 3454Context.Diagnostics,
PEWriter\ReferenceIndexer.cs (1)
37foreach (var exportedType in module.GetExportedTypes(Context.Diagnostics))
PEWriter\TypeNameSerializer.cs (1)
84context.Diagnostics.Add(messageProvider.CreateDiagnostic(
Symbols\Attributes\MarshalPseudoCustomAttributeData.cs (2)
123return ((CommonPEModuleBuilder)context.Module).Translate(typeSymbol, context.SyntaxNode, context.Diagnostics); 186return ((CommonPEModuleBuilder)context.Module).Translate((ITypeSymbolInternal)_marshalTypeNameOrSymbol, context.SyntaxNode, context.Diagnostics);