10 writes to Constraint
Microsoft.CodeAnalysis (3)
Diagnostic\CommonMessageProvider.cs (1)
114Constraint = "Frequently called by error list filtering; avoid allocations")]
Diagnostic\Diagnostic.cs (1)
489Constraint = "In most cases, AdditionalLocations is empty.",
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
195[PerformanceSensitive("https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1320760", Constraint = "Avoid large object heap allocations")]
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\UnboundLambda.cs (2)
495Constraint = "Avoid " + nameof(ConcurrentDictionary<(NamedTypeSymbol, bool), BoundLambda>) + " which has a large default size, but this cache is normally small.")] 500Constraint = "Avoid " + nameof(ConcurrentDictionary<ReturnInferenceCacheKey, BoundLambda>) + " which has a large default size, but this cache is normally small.")]
Compilation\CSharpSemanticModel.cs (1)
1886Constraint = "Provide " + nameof(ArrayBuilder<Symbol>) + " capacity to reduce number of allocations.")]
Declarations\DeclarationTable.cs (1)
151Constraint = "Avoid " + nameof(SingleNamespaceOrTypeDeclaration.Location) + " since it has a costly allocation on this fast path.")]
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
60Constraint = "Provide " + nameof(ArrayBuilder<Symbol>) + " capacity to reduce number of allocations.",
Syntax\SyntaxFacts.cs (1)
556[PerformanceSensitive("https://github.com/dotnet/roslyn/pull/66970", Constraint = "Use Green nodes for walking to avoid heavy allocations.")]
Microsoft.CodeAnalysis.VisualBasic (1)
Declarations\DeclarationTable.vb (1)
190Constraint:="Avoid " + NameOf(SingleNamespaceOrTypeDeclaration.Location) + " since it probably also has a costly allocation on this fast path (VB equivalent of issue found in C# code).")>