9 writes to Constraint
Microsoft.CodeAnalysis (3)
Diagnostic\CommonMessageProvider.cs (1)
114Constraint = "Frequently called by error list filtering; avoid allocations")]
Diagnostic\Diagnostic.cs (1)
492Constraint = "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)
525Constraint = "Avoid " + nameof(ConcurrentDictionary<(NamedTypeSymbol, bool), BoundLambda>) + " which has a large default size, but this cache is normally small.")] 530Constraint = "Avoid " + nameof(ConcurrentDictionary<ReturnInferenceCacheKey, BoundLambda>) + " which has a large default size, but this cache is normally small.")]
Compilation\CSharpSemanticModel.cs (1)
1876Constraint = "Provide " + nameof(ArrayBuilder<Symbol>) + " capacity to reduce number of allocations.")]
Declarations\DeclarationTable.cs (1)
152Constraint = "Avoid " + nameof(SingleNamespaceOrTypeDeclaration.Location) + " since it has a costly allocation on this fast path.")]
Symbols\Metadata\PE\PENamespaceSymbol.cs (1)
64Constraint = "Provide " + nameof(ArrayBuilder<Symbol>) + " capacity to reduce number of allocations.",
Syntax\SyntaxFacts.cs (1)
571[PerformanceSensitive("https://github.com/dotnet/roslyn/pull/66970", Constraint = "Use Green nodes for walking to avoid heavy allocations.")]