156 implementations of
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.AspNetCore.Components (1)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
263public object? this[string key]
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
265public StringValues this[string key] => _form[key];
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.AspNetCore.Http (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
98public TValue this[TKey key]
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
263public object? this[string key]
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelStateDictionary.cs (1)
171public ModelStateEntry? this[string key]
ModelBinding\Validation\ValidationStateDictionary.cs (1)
52ValidationStateEntry IReadOnlyDictionary<object, ValidationStateEntry>.this[object key] => this[key]!;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AttributeDictionary.cs (1)
22public string? this[string key]
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
98public TValue this[TKey key]
Microsoft.Build (3)
BackEnd\BuildManager\GlobalPropertiesLookup.cs (1)
54public string? this[string key] => ExtractEscapedValue(_backingProperties[key]);
Collections\ArrayDictionary.cs (1)
38public TValue this[TKey key]
ReadOnlyEmptyDictionary.cs (1)
166public V this[K key]
Microsoft.Build.Framework (3)
ImmutableSegmentedDictionary`2.cs (1)
118public TValue this[TKey key] => _dictionary[key];
ImmutableSegmentedDictionary`2+Builder.cs (1)
84public TValue this[TKey key]
SegmentedDictionary`2.cs (1)
179public TValue this[TKey key]
Microsoft.Build.Tasks.Core (1)
ReadOnlyEmptyDictionary.cs (1)
166public V this[K key]
Microsoft.Build.Utilities.Core (1)
ReadOnlyEmptyDictionary.cs (1)
166public V this[K key]
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Collections.Package (5)
Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Extensions.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.Extensions.AI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Abstractions (3)
AdditionalPropertiesDictionary{TValue}.cs (1)
64public TValue this[string key]
Functions\AIFunctionArguments.cs (1)
104public object? this[string key]
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
1113public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException(); 1161public TValue this[TKey key] => _dictionary[key];
Microsoft.Extensions.AI.AzureAIInference (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Ollama (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Extensions.AI.OpenAI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Microsoft.Maui.Controls (1)
DragAndDrop\DataPackagePropertySetView.cs (1)
20 public object this[string key] => _dataPackagePropertySet[key];
MSBuild (1)
ReadOnlyEmptyDictionary.cs (1)
166public V this[K key]
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Shared (1)
EmptyCollections\EmptyReadonlyDictionary.cs (1)
22public TValue this[TKey key] => throw new KeyNotFoundException();
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
1113public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException(); 1161public TValue this[TKey key] => _dictionary[key];
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
364public TValue this[TKey key]
System\Collections\Generic\SortedDictionary.cs (1)
106public TValue this[TKey key]
System\Collections\Generic\SortedList.cs (1)
570public TValue this[TKey key]
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1065public TValue this[TKey key]
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
584TValue IReadOnlyDictionary<TKey, TValue>.this[TKey key] =>
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
407public TValue this[TKey key]
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
244public TValue this[TKey key]
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
176public TValue this[TKey key]
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
185public TValue this[TKey key]
System.Formats.Nrbf (1)
System\Formats\Nrbf\RecordMap.cs (1)
22public SerializationRecord this[SerializationRecordId objectId] => _map[objectId];
System.Net.Http (2)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
42public HeaderStringValues this[string headerName]
System\Net\Http\HttpRequestOptions.cs (1)
19object? IReadOnlyDictionary<string, object?>.this[string key] => Options[key];
System.Net.WebSockets.Client (1)
System\Net\WebSockets\HttpResponseHeadersReadOnlyCollection.cs (1)
17public IEnumerable<string> this[string key] => _headers[key];
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
228public TValue this[TKey key]
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
53public TValue this[TKey key] => m_dictionary[key];
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (1)
239public Type this[TKey key]
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
71public CoseHeaderValue this[CoseHeaderLabel key]
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\GroupCollection.cs (1)
40public Group this[string groupname] => _match._regex is null ?
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
120public TValue this[TKey key] => _dictionary[key];
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
875 references to
AzureFunctionsEndToEnd.Functions (1)
MyAzureBlobTrigger.cs (1)
13var blobName = (string)context.BindingContext.BindingData["name"]!;
GenerateDocumentationAndConfigFiles (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
InMemory.FunctionalTests (21)
ConnectionMiddlewareTests.cs (1)
175Assert.Equal(typeof(InvalidOperationException).FullName, m.Tags[KestrelMetrics.ErrorTypeAttributeName]);
KestrelMetricsTests.cs (19)
97Assert.Equal("value!", (string)m.Tags["custom"]); 385Assert.Equal("value!", (string)m.Tags["custom"]); 752Assert.Equal("1.2", (string)m.Tags["tls.protocol.version"]); 760Assert.Equal("http", (string)measurement.Tags["network.protocol.name"]); 761Assert.Equal(httpVersion, (string)measurement.Tags["network.protocol.version"]); 912Assert.Equal(typeof(AuthenticationException).FullName, (string)m.Tags["error.type"]); 933Assert.Equal(networkTransport, (string)measurement.Tags["network.transport"]); 934Assert.Equal(localAddress, (string)measurement.Tags["server.address"]); 937Assert.Equal(localPort, (int)measurement.Tags["server.port"]); 945Assert.Equal(networkType, (string)measurement.Tags["network.type"]); 953Assert.Equal("http", (string)measurement.Tags["network.protocol.name"]); 954Assert.Equal(httpVersion, (string)measurement.Tags["network.protocol.version"]); 963Assert.Equal(tlsProtocolVersion, (string)measurement.Tags["tls.protocol.version"]); 971Assert.Equal(error, (string)measurement.Tags["error.type"]); 981throw new Exception($"Connection has unexpected error.type value: {measurement.Tags["error.type"]}", ex); 989Assert.Equal(networkTransport, (string)measurement.Tags["network.transport"]); 990Assert.Equal(localAddress, (string)measurement.Tags["server.address"]); 993Assert.Equal(localPort, (int)measurement.Tags["server.port"]); 1001Assert.Equal(networkType, (string)measurement.Tags["network.type"]);
src\Servers\Kestrel\shared\test\MetricsAssert.cs (1)
19Equal(expectedReason, (string) tags[KestrelMetrics.ErrorTypeAttributeName]);
Interop.FunctionalTests (14)
Http2\Http2RequestTests.cs (7)
145Assert.Equal("http", (string)m.Tags["network.protocol.name"]); 146Assert.Equal("2", (string)m.Tags["network.protocol.version"]); 147Assert.Equal("tcp", (string)m.Tags["network.transport"]); 148Assert.Equal("ipv6", (string)m.Tags["network.type"]); 149Assert.Equal("::1", (string)m.Tags["server.address"]); 150Assert.Equal(host.GetPort(), (int)m.Tags["server.port"]); 151Assert.Equal("1.2", (string)m.Tags["tls.protocol.version"]);
Http3\Http3RequestTests.cs (7)
107Assert.Equal("ipv4", (string)m.Tags["network.type"]); 108Assert.Equal("http", (string)m.Tags["network.protocol.name"]); 109Assert.Equal("3", (string)m.Tags["network.protocol.version"]); 110Assert.Equal("udp", (string)m.Tags["network.transport"]); 111Assert.Equal("127.0.0.1", (string)m.Tags["server.address"]); 112Assert.Equal(host.GetPort(), (int)m.Tags["server.port"]); 113Assert.Equal("1.3", (string)m.Tags["tls.protocol.version"]);
Metrics (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Metrics.Legacy (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.AspNetCore.Authentication.Test (21)
AuthenticationMetricsTest.cs (21)
38Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 39Assert.Equal("success", (string)measurement.Tags["aspnetcore.authentication.result"]); 66Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 67Assert.Equal("failure", (string)measurement.Tags["aspnetcore.authentication.result"]); 68Assert.Equal("Microsoft.AspNetCore.Authentication.AuthenticationFailureException", (string)measurement.Tags["error.type"]); 94Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 95Assert.Equal("none", (string)measurement.Tags["aspnetcore.authentication.result"]); 123Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 124Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]); 148Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 175Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 176Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]); 199Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 226Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 227Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]); 250Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 277Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 278Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]); 301Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 328Assert.Equal("custom", (string)measurement.Tags["aspnetcore.authentication.scheme"]); 329Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]);
Microsoft.AspNetCore.Authorization.Test (15)
AuthorizationMetricsTest.cs (15)
33Assert.Equal("Basic", (string)measurement.Tags["aspnetcore.authorization.policy"]); 34Assert.Equal("success", (string)measurement.Tags["aspnetcore.authorization.result"]); 35Assert.True((bool)measurement.Tags["user.is_authenticated"]); 58Assert.Equal("Basic", (string)measurement.Tags["aspnetcore.authorization.policy"]); 59Assert.Equal("failure", (string)measurement.Tags["aspnetcore.authorization.result"]); 60Assert.False((bool)measurement.Tags["user.is_authenticated"]); 83Assert.Equal("UnknownPolicy", (string)measurement.Tags["aspnetcore.authorization.policy"]); 84Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]); 85Assert.False((bool)measurement.Tags["user.is_authenticated"]); 112Assert.Equal("success", (string)measurement.Tags["aspnetcore.authorization.result"]); 113Assert.False((bool)measurement.Tags["user.is_authenticated"]); 137Assert.Equal("failure", (string)measurement.Tags["aspnetcore.authorization.result"]); 138Assert.False((bool)measurement.Tags["user.is_authenticated"]); 166Assert.Equal("System.InvalidOperationException", (string)measurement.Tags["error.type"]); 167Assert.False((bool)measurement.Tags["user.is_authenticated"]);
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
RazorComponentResultTest.cs (3)
38Assert.Equal(123, result.Parameters["First"]); 47Assert.Equal(123, result.Parameters["Param1"]); 48Assert.Equal("Another", result.Parameters["Param2"]);
Microsoft.AspNetCore.Components.Server.Tests (6)
Circuits\ServerComponentDeserializerTest.cs (6)
55Assert.Equal("Value", parameters["Parameter"]); 75Assert.Null(parameters["Parameter"]); 117Assert.Equal("Value", firstParameters["First"]); 125Assert.Null(secondParameters["Second"]); 147Assert.Equal("Value", firstParameters["First"]); 335Assert.Equal("Value", firstParameters["First"]);
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\InputBaseTest.cs (2)
456Assert.Equal("true", component.AdditionalAttributes["aria-invalid"]); 490Assert.Equal("userSpecifiedValue", component.AdditionalAttributes["aria-invalid"]);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\RequestHeadersEnricherTests.cs (5)
105Assert.Equal($"redacted:{RequestId}", enrichedState[NormalizedHeaderKey1].ToString()); 106Assert.Equal(TestValue, enrichedState[NormalizedHeaderKey4].ToString()); 135Assert.Equal($"REDACTED:{RequestId}", enrichedState[NormalizedHeaderKey1].ToString()); 161Assert.Equal(RequestId, enrichedState[NormalizedHeaderKey1].ToString()); 187Assert.Equal(RequestId, enrichedState[NormalizedHeaderKey1].ToString());
Microsoft.AspNetCore.Diagnostics.Tests (20)
DeveloperExceptionPageMiddlewareTest.cs (5)
617Assert.Equal(500, (int)m.Tags["http.response.status_code"]); 618Assert.Equal("System.Exception", (string)m.Tags["error.type"]); 627Assert.Equal(exceptionName, (string)measurement.Tags["error.type"]); 628Assert.Equal(result, measurement.Tags["aspnetcore.diagnostics.exception.result"].ToString()); 635Assert.Equal(handler, (string)measurement.Tags["aspnetcore.diagnostics.handler.type"]);
ExceptionHandlerMiddlewareTest.cs (9)
349Assert.Equal(500, (int)m.Tags["http.response.status_code"]); 350Assert.Equal("System.Exception", (string)m.Tags["error.type"]); 351Assert.Equal("/path", (string)m.Tags["http.route"]); 416Assert.Equal(500, (int)m.Tags["http.response.status_code"]); 417Assert.Equal("System.Exception", (string)m.Tags["error.type"]); 418Assert.Equal("/new", (string)m.Tags["http.route"]); 451Assert.Equal(exceptionName, (string)measurement.Tags["error.type"]); 452Assert.Equal(result, measurement.Tags["aspnetcore.diagnostics.exception.result"].ToString()); 459Assert.Equal(handler, (string)measurement.Tags["aspnetcore.diagnostics.handler.type"]);
ExceptionHandlerTest.cs (6)
1039Assert.Equal(404, (int)m.Tags["http.response.status_code"]); 1040Assert.Equal("System.Exception", (string)m.Tags["error.type"]); 1109Assert.Equal(500, (int)m.Tags["http.response.status_code"]); 1110Assert.Equal("System.Exception", (string)m.Tags["error.type"]); 1171Assert.Equal(404, (int)m.Tags["http.response.status_code"]); 1172Assert.Equal("System.Exception", (string)m.Tags["error.type"]);
Microsoft.AspNetCore.HeaderParsing.Tests (4)
HeaderParsingFeatureTests.cs (4)
153latest.Tags["aspnetcore.header_parsing.header.name"].Should().Be("Date"); 154latest.Tags["error.type"].Should().Be("Unable to parse date time offset value."); 211latest.Tags["aspnetcore.header_parsing.header.name"].Should().Be(HeaderNames.CacheControl); 212latest.Tags["aspnetcore.header_parsing.cache_access.type"].Should().Be("Hit");
Microsoft.AspNetCore.Hosting.Tests (29)
HostingApplicationDiagnosticsTests.cs (25)
263Assert.Equal("http", m.Tags["url.scheme"]); 264Assert.Equal("POST", m.Tags["http.request.method"]); 279Assert.Equal("http", m.Tags["url.scheme"]); 280Assert.Equal("POST", m.Tags["http.request.method"]); 285Assert.Equal("http", m.Tags["url.scheme"]); 286Assert.Equal("POST", m.Tags["http.request.method"]); 322Assert.Equal("http", m.Tags["url.scheme"]); 323Assert.Equal("POST", m.Tags["http.request.method"]); 338Assert.Equal("http", m.Tags["url.scheme"]); 339Assert.Equal("POST", m.Tags["http.request.method"]); 344Assert.Equal("http", m.Tags["url.scheme"]); 345Assert.Equal("POST", m.Tags["http.request.method"]); 351Assert.Equal("hello/{name}", m.Tags["http.route"]); 382Assert.Equal("http", m.Tags["url.scheme"]); 383Assert.Equal("POST", m.Tags["http.request.method"]); 398Assert.Equal("http", m.Tags["url.scheme"]); 399Assert.Equal("POST", m.Tags["http.request.method"]); 404Assert.Equal("http", m.Tags["url.scheme"]); 405Assert.Equal("POST", m.Tags["http.request.method"]); 437Assert.Equal("http", m.Tags["url.scheme"]); 438Assert.Equal("POST", m.Tags["http.request.method"]); 453Assert.Equal("http", m.Tags["url.scheme"]); 454Assert.Equal("POST", m.Tags["http.request.method"]); 459Assert.Equal("http", m.Tags["url.scheme"]); 460Assert.Equal("POST", m.Tags["http.request.method"]);
HostingMetricsTests.cs (4)
95Assert.Equal(httpVersion, (string)measurement.Tags["network.protocol.version"]); 96Assert.Equal(statusCode, (int)measurement.Tags["http.response.status_code"]); 103Assert.Equal(exceptionName, (string)measurement.Tags["error.type"]); 107Assert.True((bool)measurement.Tags["aspnetcore.request.is_unhandled"]);
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
1169Assert.Equal(transportType.ToString(), (string)measurement.Tags["signalr.transport"]); 1175Assert.Equal(status.ToString(), (string)measurement.Tags["signalr.connection.status"]); 1176Assert.Equal(transportType.ToString(), (string)measurement.Tags["signalr.transport"]);
Microsoft.AspNetCore.Mvc.Core.Test (18)
Routing\ActionEndpointDataSourceBaseTest.cs (5)
36Assert.Equal("Value", endpoint.RoutePattern.RequiredValues["Name"]); 100Assert.Equal("TestController", routePattern.RequiredValues["controller"]); 101Assert.Equal("TestAction", routePattern.RequiredValues["action"]); 122Assert.Equal("NewTestController", routePattern.RequiredValues["controller"]); 123Assert.Equal("NewTestAction", routePattern.RequiredValues["action"]);
Routing\ActionEndpointFactoryTest.cs (13)
150Assert.Equal("TestController", endpoint.RoutePattern.RequiredValues["controller"]); 151Assert.Equal("TestAction", endpoint.RoutePattern.RequiredValues["action"]); 152Assert.Equal("TestController", endpoint.RoutePattern.Defaults["controller"]); 185Assert.Equal("TESTACTION", endpoint.RoutePattern.Defaults["action"]); 187Assert.Equal("TestAction", endpoint.RoutePattern.RequiredValues["action"]); 233Assert.Equal("TestController", endpoint.RoutePattern.RequiredValues["controller"]); 234Assert.Equal("TestAction", endpoint.RoutePattern.RequiredValues["action"]); 251Assert.Equal("TestController", endpoint.RoutePattern.RequiredValues["controller"]); 252Assert.Equal("TestAction", endpoint.RoutePattern.RequiredValues["action"]); 348Assert.Equal("Index", matcherEndpoint.RoutePattern.RequiredValues["action"]); 349Assert.Equal("Home", matcherEndpoint.RoutePattern.RequiredValues["controller"]); 356Assert.Equal("Index", matcherEndpoint.RoutePattern.RequiredValues["action"]); 357Assert.Equal("Home", matcherEndpoint.RoutePattern.RequiredValues["controller"]);
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (5)
36Assert.Equal("Value", endpoint.RoutePattern.RequiredValues["Name"]); 100Assert.Equal("TestController", routePattern.RequiredValues["controller"]); 101Assert.Equal("TestAction", routePattern.RequiredValues["action"]); 122Assert.Equal("NewTestController", routePattern.RequiredValues["controller"]); 123Assert.Equal("NewTestAction", routePattern.RequiredValues["action"]);
Microsoft.AspNetCore.RateLimiting.Tests (4)
RateLimitingMetricsTests.cs (4)
58Assert.Equal("global_limiter", (string)m.Tags["aspnetcore.rate_limiting.result"]); 117Assert.Equal("acquired", (string)m.Tags["aspnetcore.rate_limiting.result"]); 238Assert.Equal("acquired", (string)m.Tags["aspnetcore.rate_limiting.result"]); 331Assert.Equal(expected, (T)tags[tagName]);
Microsoft.AspNetCore.Routing (2)
Template\TemplateBinder.cs (2)
227if (!RoutePartsEqual(ambientValue, _pattern.RequiredValues[key]) && 228!RoutePattern.IsRequiredValueAny(_pattern.RequiredValues[key]))
Microsoft.AspNetCore.Routing.Tests (4)
RoutingMetricsTests.cs (4)
139Assert.Equal("failure", (string)measurement.Tags["aspnetcore.routing.match_status"]); 145Assert.Equal("success", (string)measurement.Tags["aspnetcore.routing.match_status"]); 146Assert.Equal(route, (string)measurement.Tags["http.route"]); 147Assert.Equal(fallback, (bool)measurement.Tags["aspnetcore.routing.is_fallback"]);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\MetricsAssert.cs (1)
19Equal(expectedReason, (string) tags[KestrelMetrics.ErrorTypeAttributeName]);
Microsoft.Build (4)
BackEnd\BuildManager\BuildManager.cs (1)
2097var targetList = targetsPerNode[node];
Construction\Solution\SolutionProjectGenerator.cs (1)
1630ProjectInSolution referencedProject = _solutionFile.ProjectsByGuid[projectReferenceGuid];
Graph\GraphBuildResult.cs (1)
87public BuildResult this[ProjectGraphNode node] => ResultsByNode[node];
Graph\ProjectGraph.cs (1)
549: string.Join(", ", targetsPerNode[node]);
Microsoft.Build.BuildCheck.UnitTests (7)
TaskInvocationAnalysisDataTests.cs (7)
121data.Parameters["Text"].IsOutput.ShouldBe(false); 122data.Parameters["Text"].Value.ShouldBe("Hello"); 144data.Parameters["Paths"].IsOutput.ShouldBe(false); 145data.Parameters["Paths"].Value.ShouldBeAssignableTo(typeof(IList)); 146IList listValue = (IList)data.Parameters["Paths"].Value!; 152data.Parameters["CombinedPaths"].IsOutput.ShouldBe(true); 153data.Parameters["CombinedPaths"].Value.ShouldNotBeNull();
Microsoft.Build.Engine.OM.UnitTests (32)
Construction\SolutionFile_Tests.cs (32)
602Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Any CPU"].FullName); 603Assert.True(csharpProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 605Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 606Assert.True(csharpProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 608Assert.Equal("Debug|AnyCPU", csharpProject.ProjectConfigurations["Debug|Win32"].FullName); 609Assert.False(csharpProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 611Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Any CPU"].FullName); 612Assert.True(csharpProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 614Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 615Assert.True(csharpProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 617Assert.Equal("Release|AnyCPU", csharpProject.ProjectConfigurations["Release|Win32"].FullName); 618Assert.False(csharpProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 622Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Any CPU"].FullName); 623Assert.False(vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 625Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName); 626Assert.True(vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild); 628Assert.Equal("Debug|Win32", vcProject.ProjectConfigurations["Debug|Win32"].FullName); 629Assert.True(vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 631Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Any CPU"].FullName); 632Assert.False(vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild); 634Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName); 635Assert.True(vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild); 637Assert.Equal("Release|Win32", vcProject.ProjectConfigurations["Release|Win32"].FullName); 638Assert.True(vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild); 688Assert.Equal("Debug|x86", winFormsApp1.ProjectConfigurations["Debug|Win32"].FullName); 689Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 691Assert.Equal("Release|x86", winFormsApp1.ProjectConfigurations["Release|Win32"].FullName); 692Assert.True(winFormsApp1.ProjectConfigurations["Debug|Win32"].IncludeInBuild); 696Assert.Equal("Debug|AnyCPU", classLibrary1.ProjectConfigurations["Debug|Any CPU"].FullName); 697Assert.False(classLibrary1.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild); 699Assert.Equal("Release|AnyCPU", classLibrary1.ProjectConfigurations["Release|Any CPU"].FullName); 700Assert.False(classLibrary1.ProjectConfigurations["Release|Any CPU"].IncludeInBuild);
Microsoft.Build.Engine.UnitTests (130)
BackEnd\BuildManager_Tests.cs (4)
4212result.ResultsByNode[node1].OverallResult.ShouldBe(BuildResultCode.Success); 4216result.ResultsByNode[node2].OverallResult.ShouldBe(BuildResultCode.Success); 4297result.ResultsByNode[node1].OverallResult.ShouldBe(BuildResultCode.Failure); 4301result.ResultsByNode[node2].OverallResult.ShouldBe(BuildResultCode.Failure);
Construction\SolutionFile_OldParser_Tests.cs (48)
276ProjectInSolution project = solution.ProjectsByGuid["{AD0F3D02-9925-4D57-9DAF-E0A9D936ABDB}"]; 277ProjectInSolution project2 = solution.ProjectsByGuid["{CCCCCCCC-9925-4D57-9DAF-E0A9D936ABDB}"]; 330ProjectInSolution project1 = solution.ProjectsByGuid["{CCCCCCCC-9925-4D57-9DAF-E0A9D936ABDB}"]; 331ProjectInSolution project2 = solution.ProjectsByGuid["{DEA89696-F42B-4B58-B7EE-017FF40817D1}"]; 1893ProjectInSolution classLibraryProject = solution.ProjectsByGuid["{6185CC21-BE89-448A-B3C0-D1C27112E595}"]; 1894ProjectInSolution mainAppProject = solution.ProjectsByGuid["{A6F99D27-47B9-4EA4-BFC9-25157CBDC281}"]; 1895ProjectInSolution lowLevelProject = solution.ProjectsByGuid["{E8E75132-67E4-4D6F-9CAE-8DA4C883F419}"]; 1896ProjectInSolution highLevelProject = solution.ProjectsByGuid["{D2633E4D-46FF-4C4E-8340-4BC7CDF78615}"]; 1959ProjectInSolution csProject = solution.ProjectsByGuid["{6185CC21-BE89-448A-B3C0-D1C27112E595}"]; 1960ProjectInSolution vcProject = solution.ProjectsByGuid["{A6F99D27-47B9-4EA4-BFC9-25157CBDC281}"]; 1964csProject.ProjectConfigurations["Debug|Any CPU"].FullName.ShouldBe("Debug|AnyCPU"); 1965csProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild.ShouldBeTrue(); 1967csProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU"); 1968csProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1970csProject.ProjectConfigurations["Debug|Win32"].FullName.ShouldBe("Debug|AnyCPU"); 1971csProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild.ShouldBeFalse(); 1973csProject.ProjectConfigurations["Release|Any CPU"].FullName.ShouldBe("Release|AnyCPU"); 1974csProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild.ShouldBeTrue(); 1976csProject.ProjectConfigurations["Release|Mixed Platforms"].FullName.ShouldBe("Release|AnyCPU"); 1977csProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1979csProject.ProjectConfigurations["Release|Win32"].FullName.ShouldBe("Release|AnyCPU"); 1980csProject.ProjectConfigurations["Release|Win32"].IncludeInBuild.ShouldBeFalse(); 1984vcProject.ProjectConfigurations["Debug|Any CPU"].FullName.ShouldBe("Debug|Win32"); 1985vcProject.ProjectConfigurations["Debug|Any CPU"].IncludeInBuild.ShouldBeFalse(); 1987vcProject.ProjectConfigurations["Debug|Mixed Platforms"].FullName.ShouldBe("Debug|Win32"); 1988vcProject.ProjectConfigurations["Debug|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1990vcProject.ProjectConfigurations["Debug|Win32"].FullName.ShouldBe("Debug|Win32"); 1991vcProject.ProjectConfigurations["Debug|Win32"].IncludeInBuild.ShouldBeTrue(); 1993vcProject.ProjectConfigurations["Release|Any CPU"].FullName.ShouldBe("Release|Win32"); 1994vcProject.ProjectConfigurations["Release|Any CPU"].IncludeInBuild.ShouldBeFalse(); 1996vcProject.ProjectConfigurations["Release|Mixed Platforms"].FullName.ShouldBe("Release|Win32"); 1997vcProject.ProjectConfigurations["Release|Mixed Platforms"].IncludeInBuild.ShouldBeTrue(); 1999vcProject.ProjectConfigurations["Release|Win32"].FullName.ShouldBe("Release|Win32"); 2000vcProject.ProjectConfigurations["Release|Win32"].IncludeInBuild.ShouldBeTrue(); 2044ProjectInSolution webProject = solution.ProjectsByGuid["{E8E75132-67E4-4D6F-9CAE-8DA4C883F418}"]; 2045ProjectInSolution exeProject = solution.ProjectsByGuid["{25FD9E7C-F37E-48E0-9A7C-607FE4AACCC0}"]; 2046ProjectInSolution missingWebProject = solution.ProjectsByGuid["{E8E75132-67E4-4D6F-9CAE-8DA4C883F419}"]; 2050webProject.ProjectConfigurations["Debug|.NET"].FullName.ShouldBe("Debug|.NET"); 2051webProject.ProjectConfigurations["Debug|.NET"].IncludeInBuild.ShouldBeTrue(); 2055exeProject.ProjectConfigurations["Debug|.NET"].FullName.ShouldBe("Debug"); 2056exeProject.ProjectConfigurations["Debug|.NET"].IncludeInBuild.ShouldBeFalse(); 2099ProjectInSolution project1 = solution.ProjectsByGuid["{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}"]; 2100ProjectInSolution project2 = solution.ProjectsByGuid["{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}"]; 2168ProjectInSolution project1 = solution.ProjectsByGuid["{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}"]; 2169ProjectInSolution project2 = solution.ProjectsByGuid["{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}"]; 2245ProjectInSolution project1 = solution.ProjectsByGuid["{6185CC21-BE89-448A-B3C0-D1C27112E595}"]; 2246ProjectInSolution project2 = solution.ProjectsByGuid["{FC2889D9-6050-4D2E-B022-979CCFEEAAAC}"]; 2247ProjectInSolution project3 = solution.ProjectsByGuid["{ED30D4A3-1214-410B-82BB-B61E5A9D05CA}"];
EvaluationProfiler_Tests.cs (1)
202var totalGlobLocation = result.ProfiledLocations[totalGlob];
Graph\ProjectGraph_Tests.cs (76)
929targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 930targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "B" }); 931targetLists[GetFirstNodeWithProjectNumber(projectGraph, 3)].ShouldBe(new[] { "B" }); 932targetLists[GetFirstNodeWithProjectNumber(projectGraph, 4)].ShouldBe(new[] { "C", "D" }); // From B => C and B => D 957targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 958targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "B", "X", "C" }); 959targetLists[GetFirstNodeWithProjectNumber(projectGraph, 3)].ShouldBe(new[] { "X", "Y", "Z" }); // Simplified from X, Y, X, Z 988targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 989targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "B" }); 990targetLists[GetFirstNodeWithProjectNumber(projectGraph, 3)].ShouldBe(new[] { "B" }); 991targetLists[GetFirstNodeWithProjectNumber(projectGraph, 4)].ShouldBe(new[] { "C" }); 992targetLists[GetFirstNodeWithProjectNumber(projectGraph, 5)].ShouldBe(new[] { "B", "C", "D" }); 993targetLists[GetFirstNodeWithProjectNumber(projectGraph, 6)].ShouldBe(new[] { "C", "D", "E" }); 1010targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 1011targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "B" }); 1028targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "Foo" }); 1029targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBeEmpty(); 1051targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBeEmpty(); 1052targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBeEmpty(); 1074targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 1075targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBeEmpty(); 1118targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 1119targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(NonOuterBuildTargets); 1159targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 1160targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(NonOuterBuildTargets); 1198targetLists[root].ShouldBe(new[] { "A" }); 1199targetLists[outerBuild].ShouldBe(OuterBuildTargets); 1203targetLists[innerBuild].ShouldBe(NonOuterBuildTargets); 1263targetLists[rootOuterBuild].ShouldBe(new[] { "A" }); 1267targetLists[innerBuild].ShouldBe(new[] { "D1", "A", "AOuter", "AInner" }); 1270targetLists[GetFirstNodeWithProjectNumber(graph, 2)].ShouldBe(new[] { "T2", "A", "AOuter", "AInner" }); 1272targetLists[nonRootOuterBuild].ShouldBe(new[] { "T3", "A", "AOuter" }); 1276targetLists[innerBuild].ShouldBe(new[] { "T3", "A", "AOuter", "AInner", "D3" }); 1370targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "A" }); 1371targetLists[GetFirstNodeWithProjectNumber(projectGraph, 4)].ShouldBe(NonOuterBuildTargets); 1372targetLists[GetFirstNodeWithProjectNumber(projectGraph, 5)].ShouldBe(NonOuterBuildTargets); 1377targetLists[GetOuterBuild(projectGraph, projectNumber)].ShouldBe(outerBuildTargets); 1381targetLists[innerBuild].ShouldBe(nonOuterBuildTargets); 1399targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "A" }); 1400targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "B" }); 1422targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "Build" }); 1423targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "A", "Build" }); 1452targetLists[GetFirstNodeWithProjectNumber(projectGraph, 1)].ShouldBe(new[] { "Build" }); 1453targetLists[GetFirstNodeWithProjectNumber(projectGraph, 2)].ShouldBe(new[] { "A", "Build" }); 1454targetLists[GetFirstNodeWithProjectNumber(projectGraph, 3)].ShouldBe(new[] { "A", "X" }); 1455targetLists[GetFirstNodeWithProjectNumber(projectGraph, 4)].ShouldBe(new[] { "A", "Y" }); 1456targetLists[GetFirstNodeWithProjectNumber(projectGraph, 5)].ShouldBe(new[] { "A", "Build" }); 1457targetLists[GetFirstNodeWithProjectNumber(projectGraph, 6)].ShouldBe(new[] { "B", "Build" }); 1458targetLists[GetFirstNodeWithProjectNumber(projectGraph, 7)].ShouldBe(new[] { "C", "Z", "W" }); 1509targetLists[key: GetFirstNodeWithProjectNumber(graph: projectGraph, projectNum: 1)].ShouldBe(expected: new[] { "Build" }); 1510targetLists[key: GetFirstNodeWithProjectNumber(graph: projectGraph, projectNum: 2)].ShouldBe(expected: new[] { "Build" }); 1511targetLists[key: GetFirstNodeWithProjectNumber(graph: projectGraph, projectNum: 3)].ShouldBe(expected: new[] { "Build" }); 1512targetLists[key: GetFirstNodeWithProjectNumber(graph: projectGraph, projectNum: 4)].ShouldBe(expected: new[] { "Build" }); 1513targetLists[key: GetFirstNodeWithProjectNumber(graph: projectGraph, projectNum: 5)].ShouldBe(expected: new[] { "T51", "T2", "T53", "T54", "T3", "D51", "D52", "T4" }); 1553targetLists[key: GetFirstNodeWithProjectNumber(graph: graph, projectNum: 1)].ShouldBe(expected: new[] { "Build" }); 1554targetLists[key: GetFirstNodeWithProjectNumber(graph: graph, projectNum: 2)].ShouldBe(expected: new[] { "NonskippableTarget1", "NonskippableTarget2", "SkippableExistingTarget" }); 1603targetLists[key: GetFirstNodeWithProjectNumber(graph: graph, projectNum: 1)].ShouldBe(expected: new[] { "Build" }); 1604targetLists[key: GetFirstNodeWithProjectNumber(graph: graph, projectNum: 2)].ShouldBe(expected: new[] { "NonskippableTarget1", "SkippableExistingTarget" }); 1634targetLists[key: GetOuterBuild(graph, 2)].ShouldBe(expected: OuterBuildTargets.Prepend("A")); 1857var targets = string.Join(".*", targetsPerNode[node]); 2620targetLists[outerBuild1].ShouldBe(new[] { "Build" }); 2630targetLists[inner1].ShouldBe(new[] { "BuildForOuterBuild", "Build" }); 2634targetLists[outerBuild2].ShouldBe(new[] { "BuildForOuterBuild" }); 2642targetLists[inner2].ShouldBe(new[] { "BuildForOuterBuild", "Build", "1ATarget", "1BTarget" }); 2646targetLists[outerBuild3].ShouldBe(new[] { "BuildForOuterBuild" }); 2659targetLists[inner3] 2702targetLists[project1].ShouldBe(new[] { "SomeDefaultTarget1" }); 2703targetLists[project2].ShouldBe(new[] { "SomeDefaultTarget2" }); 2744targetLists[project1].ShouldBe(new[] { "SomeDefaultTarget1" }); 2745targetLists[project2].ShouldBe(new[] { "SomeDefaultTarget2", "SomeOtherTarget" }); 2799targetLists[GetOuterBuild(graph, 1)].ShouldBe(new[] { "Build" }); 2802targetLists[inner].ShouldBe(new[] { "Build" }); 2805targetLists[GetOuterBuild(graph, 2)].ShouldBe(new[] { "GetTargetFrameworks" }); 2809targetLists[inner].ShouldBe(new[] { "GetTargetFrameworks", "GetTargetPath", "GetNativeManifest", "GetTargetFrameworksWithPlatformForSingleTargetFramework" }); 2879targetLists[project1Node].ShouldBe(expectedProject1Targets); 2880targetLists[project2Node].ShouldBe(expectedProject2Targets);
ProjectCache\ProjectCacheTests.cs (1)
812AssertBuildResultForCacheHit(node.ProjectInstance.FullPath, projectPathToBuildResults[node], expectedCacheResponse);
Microsoft.CodeAnalysis (2)
Compilation\DeterministicKeyBuilder.cs (1)
529writer.Write(key, features[key]);
ReferenceManager\CommonReferenceManager.Binding.cs (1)
987var value = assemblyReferencesBySimpleName[identity.Name][0];
Microsoft.CodeAnalysis.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.CodeAnalysis.CSharp (8)
BoundTree\BoundDecisionDag.cs (7)
127return p.Update(p.Evaluation, replacement[p.Next]); 129return p.Update(p.Test, replacement[p.WhenTrue], replacement[p.WhenFalse]); 131return p.Update(p.Bindings, p.WhenExpression, replacement[p.WhenTrue], (p.WhenFalse != null) ? replacement[p.WhenFalse] : null); 164return replacement[p.WhenTrue]; 166return replacement[p.WhenFalse];
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
671return replacement[evalNode.Next];
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
12329Assert.Equal("NS1.NS2;NS3.NS4", options.Features["InterceptorsNamespaces"]); 12349Assert.Equal("NS3.NS4", options.Features["InterceptorsNamespaces"]); 12371Assert.Equal("NS1.NS2", options.Features["InterceptorsPreviewNamespaces"]);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (6)
CSharpCommandLineParserServiceTests.cs (6)
27Assert.Equal("true", options.Features["test"]); 34Assert.Equal("dog", options.Features["test"]); 41Assert.Equal("true", options.Features["test1"]); 42Assert.Equal("true", options.Features["test2"]); 49Assert.Equal("dog", options.Features["test1"]); 50Assert.Equal("cat", options.Features["test2"]);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeActions\CodeChangeProviderMetadataTests.cs (1)
181.Where(part => ((string[])part.Export.Metadata["Languages"]!).Contains(language));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (409)
SemanticTokens\SemanticTokensFullTests.cs (12)
420, 0, 10, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '// Comment' 431, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 440, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 450, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 460, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 470, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 550, 0, 10, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '// Comment' 561, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 570, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 580, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C' 590, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 600, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}'
SemanticTokens\SemanticTokensRangesTests.cs (12)
420, 0, 10, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '// Comment' 431, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 440, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 450, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 460, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 470, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 550, 0, 10, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '// Comment' 561, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 570, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 580, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C' 590, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 600, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}'
SemanticTokens\SemanticTokensRangeTests.cs (385)
460, 0, 10, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '// Comment' 471, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 480, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 490, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 500, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 510, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 590, 0, 10, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '// Comment' 601, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 610, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 620, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C' 630, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 640, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 13912, 0, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 1400, 4, 1, tokenTypeToIndex[ClassificationTypeNames.LocalName], 0, // 'z' 1410, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 1420, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Number], 0, // '1' 1430, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 14417, 3, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 1450, 4, 1, tokenTypeToIndex[ClassificationTypeNames.LocalName], 0, // 'x' 1460, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 15412, 0, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'var' 1550, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Variable], 0, // 'z' 1560, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 1570, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Number], 0, // '1' 1580, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 15917, 3, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'var' 1600, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Variable], 0, // 'x' 1610, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 1951, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 1960, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 1970, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], (int)TokenModifiers.Static, // 'C' 1980, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 1990, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 2071, 0, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'static' 2080, 7, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 2090, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], (int)TokenModifiers.Static, // 'C' 2100, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 2110, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 2470, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 2480, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, // 'C' 2490, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 2500, 2, 6, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '/* one' 2512, 0, 3, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // 'two' 2521, 0, 8, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // 'three */' 2530, 9, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 2610, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 2620, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], 0, // 'C' 2630, 2, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 2640, 2, 6, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // '/* one' 2652, 0, 3, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // 'two' 2661, 0, 8, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, // 'three */' 2670, 9, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 3080, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 3090, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, // 'C' 3101, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 3111, 4, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'void' 3120, 5, 1, tokenTypeToIndex[ClassificationTypeNames.MethodName], 0, // 'M' 3130, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '(' 3140, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ')' 3151, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 3161, 8, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 3170, 4, 1, tokenTypeToIndex[ClassificationTypeNames.LocalName], 0, // 'x' 3180, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 3190, 2, 5, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, // '@"one' 3201, 0, 4, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, // 'two ' 3210, 4, 2, tokenTypeToIndex[ClassificationTypeNames.StringEscapeCharacter], 0, // '""' 3221, 0, 6, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, // 'three"' 3230, 6, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 3241, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 3251, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 3330, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 3340, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], 0, // 'C' 3351, 0, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '{' 3361, 4, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'void' 3370, 5, 1, tokenTypeToIndex[SemanticTokenTypes.Method], 0, // 'M' 3380, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '(' 3390, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ')' 3401, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '{' 3411, 8, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'var' 3420, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Variable], 0, // 'x' 3430, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 3440, 2, 5, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, // '@"one' 3451, 0, 4, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, // 'two ' 3460, 4, 2, tokenTypeToIndex[CustomLspSemanticTokenNames.StringEscapeCharacter], 0, // '""' 3471, 0, 6, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, // 'three"' 3480, 6, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 3491, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 3501, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '}' 3910, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'using' 3920, 6, 6, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, // 'System' 3930, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 3940, 1, 4, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, // 'Text' 3950, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 3960, 1, 18, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, // 'RegularExpressions' 3970, 18, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 3982, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 3990, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, // 'C' 4001, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 4011, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'void' 4020, 5, 1, tokenTypeToIndex[ClassificationTypeNames.MethodName], 0, // 'M' 4030, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '(' 4040, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ')' 4051, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 4061, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 4070, 4, 1, tokenTypeToIndex[ClassificationTypeNames.LocalName], 0, // 'x' 4080, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 4090, 2, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'new' 4100, 4, 5, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, // 'Regex' 4110, 5, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '(' 4120, 1, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, // '"' 4130, 1, 1, tokenTypeToIndex[ClassificationTypeNames.RegexGrouping], 0, // '(' 4140, 1, 3, tokenTypeToIndex[ClassificationTypeNames.RegexText], 0, // 'abc' 4150, 3, 1, tokenTypeToIndex[ClassificationTypeNames.RegexGrouping], 0, // ')' 4160, 1, 1, tokenTypeToIndex[ClassificationTypeNames.RegexQuantifier], 0, // '*' 4170, 1, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, // '"' 4180, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ')' 4190, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 4201, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // } 4211, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // } 4290, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'using' 4300, 6, 6, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, // 'System' 4310, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 4320, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, // 'Text' 4330, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 4340, 1, 18, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, // 'RegularExpressions' 4350, 18, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ';' 4362, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 4370, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], 0, // 'C' 4381, 0, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '{' 4391, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'void' 4400, 5, 1, tokenTypeToIndex[SemanticTokenTypes.Method], 0, // 'M' 4410, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '(' 4420, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ')' 4431, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '{' 4441, 2, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'var' 4450, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Variable], 0, // 'x' 4460, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 4470, 2, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'new' 4480, 4, 5, tokenTypeToIndex[SemanticTokenTypes.Class], 0, // 'Regex' 4490, 5, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '(' 4500, 1, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, // '"' 4510, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexGrouping], 0, // '(' 4520, 1, 3, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexText], 0, // 'abc' 4530, 3, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexGrouping], 0, // ')' 4540, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexQuantifier], 0, // '*' 4550, 1, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, // '"' 4560, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ')' 4570, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ';' 4581, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // } 4591, 0, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // } 5030, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'using' 5040, 6, 6, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, // 'System' 5050, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 5060, 1, 4, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, // 'Text' 5070, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 5080, 1, 18, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, // 'RegularExpressions' 5090, 18, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 5102, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 5110, 6, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, // 'C' 5121, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 5131, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'void' 5140, 5, 1, tokenTypeToIndex[ClassificationTypeNames.MethodName], 0, // 'M' 5150, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '(' 5160, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ')' 5171, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '{' 5181, 2, 3, tokenTypeToIndex[ClassificationTypeNames.Keyword], 0, // 'var' 5190, 4, 1, tokenTypeToIndex[ClassificationTypeNames.LocalName], 0, // 'x' 5200, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 5210, 2, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'new' 5220, 4, 5, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, // 'Regex' 5230, 5, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // '(' 5240, 1, 2, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, // '@"' 5250, 2, 1, tokenTypeToIndex[ClassificationTypeNames.RegexGrouping], 0, // '(' 5260, 1, 3, tokenTypeToIndex[ClassificationTypeNames.RegexText], 0, // 'abc' 5270, 3, 1, tokenTypeToIndex[ClassificationTypeNames.RegexGrouping], 0, // ')' 5280, 1, 1, tokenTypeToIndex[ClassificationTypeNames.RegexQuantifier], 0, // '*' 5290, 1, 1, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, // ' ' 5300, 1, 9, tokenTypeToIndex[ClassificationTypeNames.RegexComment], 0, // '#comment' 5311, 0, 27, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, // '"' 5320, 27, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ',' 5330, 2, 12, tokenTypeToIndex[ClassificationTypeNames.EnumName], 0, // 'RegexOptions' 5340, 12, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 5350, 1, 23, tokenTypeToIndex[ClassificationTypeNames.EnumMemberName], 0, // 'IgnorePatternWhitespace' 5360, 23, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ')' 5370, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // ';' 5381, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // } 5391, 0, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, // } 5470, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'using' 5480, 6, 6, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, // 'System' 5490, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 5500, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, // 'Text' 5510, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 5520, 1, 18, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, // 'RegularExpressions' 5530, 18, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ';' 5542, 0, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'class' 5550, 6, 1, tokenTypeToIndex[SemanticTokenTypes.Class], 0, // 'C' 5561, 0, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '{' 5571, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'void' 5580, 5, 1, tokenTypeToIndex[SemanticTokenTypes.Method], 0, // 'M' 5590, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '(' 5600, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ')' 5611, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '{' 5621, 2, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'var' 5630, 4, 1, tokenTypeToIndex[SemanticTokenTypes.Variable], 0, // 'x' 5640, 2, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '=' 5650, 2, 3, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, // 'new' 5660, 4, 5, tokenTypeToIndex[SemanticTokenTypes.Class], 0, // 'Regex' 5670, 5, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // '(' 5680, 1, 2, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, // '@"' 5690, 2, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexGrouping], 0, // '(' 5700, 1, 3, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexText], 0, // 'abc' 5710, 3, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexGrouping], 0, // ')' 5720, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexQuantifier], 0, // '*' 5730, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, // ' ' 5740, 1, 9, tokenTypeToIndex[CustomLspSemanticTokenNames.RegexComment], 0, // '#comment' 5751, 0, 27, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, // '"' 5760, 27, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ',' 5770, 2, 12, tokenTypeToIndex[SemanticTokenTypes.Enum], 0, // 'RegexOptions' 5780, 12, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, // '.' 5790, 1, 23, tokenTypeToIndex[SemanticTokenTypes.EnumMember], 0, // 'IgnorePatternWhitespace' 5800, 23, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ')' 5810, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // ';' 5821, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // } 5831, 0, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, // } 603var tokenName = schema.TokenTypeMap[expectedClassificationName]; 6394, 8, 15, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, 6401, 8, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 6410, 6, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 6420, 7, 4, tokenTypeToIndex[ClassificationTypeNames.ConstantName], 1, 6430, 5, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, 6440, 2, 2, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, 6451, 8, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 6460, 5, 1, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, 6470, 1, 1, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, 6480, 1, 1, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, 6490, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 6501, 0, 12, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, 6510, 12, 2, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, 6521, 0, 8, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, 6530, 8, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 6540, 1, 1, tokenTypeToIndex[ClassificationTypeNames.VerbatimStringLiteral], 0, 6550, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 6634, 8, 15, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, 6641, 8, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 6650, 6, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 6660, 7, 4, tokenTypeToIndex[CustomLspSemanticTokenNames.ConstantName], 1, 6670, 5, 1, tokenTypeToIndex[SemanticTokenTypes.Operator], 0, 6680, 2, 2, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, 6691, 8, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 6700, 5, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, 6710, 1, 1, tokenTypeToIndex[SemanticTokenTypes.Class], 0, 6720, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, 6730, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 6741, 0, 12, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, 6750, 12, 2, tokenTypeToIndex[SemanticTokenTypes.Comment], 0, 6761, 0, 8, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, 6770, 8, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 6780, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.StringVerbatim], 0, 6790, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 7211, 12, 3, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7221, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7230, 4, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7240, 5, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7250, 1, 6, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, 7260, 6, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7271, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7280, 4, 9, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7290, 9, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7300, 1, 4, tokenTypeToIndex[ClassificationTypeNames.NamespaceName], 0, 7310, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7321, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7330, 4, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7340, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7350, 1, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7360, 5, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7370, 1, 7, tokenTypeToIndex[ClassificationTypeNames.ClassName], 0, 7381, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7390, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7401, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7410, 8, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7420, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7430, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7440, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7450, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7460, 4, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7470, 1, 4, tokenTypeToIndex[ClassificationTypeNames.MethodName], 1, 7480, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7490, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7500, 6, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7510, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7520, 1, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7530, 1, 4, tokenTypeToIndex[ClassificationTypeNames.ParameterName], 0, 7540, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7551, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7560, 8, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7571, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7580, 12, 6, tokenTypeToIndex[ClassificationTypeNames.ControlKeyword], 0, 7590, 6, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7601, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7610, 8, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7621, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7630, 4, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7641, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7650, 4, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7660, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7670, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7680, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7690, 1, 6, tokenTypeToIndex[ClassificationTypeNames.StructName], 0, 7700, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7710, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7720, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7731, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7740, 4, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7750, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7760, 1, 9, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7770, 9, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7780, 1, 4, tokenTypeToIndex[ClassificationTypeNames.InterfaceName], 0, 7790, 4, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7800, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7810, 1, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7821, 0, 7, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7830, 7, 1, tokenTypeToIndex[ClassificationTypeNames.Punctuation], 0, 7911, 12, 3, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7921, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7930, 4, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7940, 5, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7950, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, 7960, 6, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 7971, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 7980, 4, 9, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 7990, 9, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8000, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Namespace], 0, 8010, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8021, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8030, 4, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8040, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8050, 1, 5, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8060, 5, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8070, 1, 7, tokenTypeToIndex[SemanticTokenTypes.Class], 0, 8081, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8090, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8101, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8110, 8, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8120, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8130, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8140, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8150, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8160, 4, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8170, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Method], 1, 8180, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8190, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8200, 6, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8210, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8220, 1, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8230, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Parameter], 0, 8240, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8251, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8260, 8, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8271, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8280, 12, 6, tokenTypeToIndex[CustomLspSemanticTokenNames.KeywordControl], 0, 8290, 6, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8301, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8310, 8, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8321, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8330, 4, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8341, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8350, 4, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8360, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8370, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8380, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8390, 1, 6, tokenTypeToIndex[SemanticTokenTypes.Struct], 0, 8400, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8410, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8420, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8431, 0, 4, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8440, 4, 6, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8450, 6, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8460, 1, 9, tokenTypeToIndex[SemanticTokenTypes.Keyword], 0, 8470, 9, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8480, 1, 4, tokenTypeToIndex[SemanticTokenTypes.Interface], 0, 8490, 4, 1, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8500, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8510, 1, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0, 8521, 0, 7, tokenTypeToIndex[SemanticTokenTypes.String], 0, 8530, 7, 1, tokenTypeToIndex[CustomLspSemanticTokenNames.Punctuation], 0,
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableDictionaryTestBase.cs (9)
50Assert.Equal(200, map["Microsoft"]); 75Assert.Equal(150, map["Microsoft"]); 76Assert.Equal(50, map["Corporation"]); 77Assert.Equal(90, map["Dogs"]); 85Assert.Equal(70, map["Microsoft"]); 86Assert.Equal(50, map["Corporation"]); 87Assert.Equal(90, map["Dogs"]); 94Assert.Equal(3, map["a"]); 95Assert.Equal(2, map["b"]);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\TryApplyChangesTests.cs (2)
134canApplyParseOptions: (_, newParseOptions) => newParseOptions.Features["Feature"] == "ExpectedValue"); 149canApplyParseOptions: (_, newParseOptions) => newParseOptions.Features["Feature"] == "ExpectedValue");
Microsoft.Data.Analysis.Tests (8)
ArrayComparer.cs (8)
144f1.Metadata.Keys.All(k => f2.Metadata.ContainsKey(k) && f1.Metadata[k] == f2.Metadata[k]) && 145f2.Metadata.Keys.All(k => f1.Metadata.ContainsKey(k) && f2.Metadata[k] == f1.Metadata[k]); 175s1.Metadata.Keys.All(k => s2.Metadata.ContainsKey(k) && s1.Metadata[k] == s2.Metadata[k]) && 176s2.Metadata.Keys.All(k => s1.Metadata.ContainsKey(k) && s2.Metadata[k] == s1.Metadata[k]);
Microsoft.DotNet.Build.Tasks.Packaging (3)
NuGetAssetResolver.cs (3)
224var packageAssets = allCompileItems[packageId]; 293var packageAssets = allRuntimeItems[packageId]; 310var packageAssets = allNativeItems[packageId];
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
75alias = _seedTypePreferences[type];
Microsoft.Extensions.AI.Abstractions.Tests (3)
Functions\AIFunctionArgumentsTests.cs (2)
86Assert.Equal("value1", args["key1"]); 87Assert.Equal("value2", args["key2"]);
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1161public TValue this[TKey key] => _dictionary[key];
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherTests.cs (2)
142if (counter!.Tags["dotnet.health_check.name"]?.ToString() == healthy && 143counter!.Tags["dotnet.health_check.status"]?.ToString() == status)
Microsoft.Extensions.Resilience.Tests (5)
Resilience\ResilienceMetricsEnricherTests.cs (5)
43Tags["error.type"].Should().Be("desc"); 63Tags["request.dependency.name"].Should().Be("my-dep"); 64Tags["request.name"].Should().Be("my-req"); 75Tags["request.dependency.name"].Should().Be("my-dep"); 76Tags["request.name"].Should().Be("my-req");
Microsoft.Extensions.Telemetry.Tests (6)
Enrichment\ApplicationLogEnricherTests.cs (4)
84Assert.Equal(AppName, enrichedState[ApplicationEnricherTags.ApplicationName]); 93Assert.Equal(EnvironmentName, enrichedState[ApplicationEnricherTags.EnvironmentName]); 102Assert.Equal(BuildVersion, enrichedState[ApplicationEnricherTags.BuildVersion]); 111Assert.Equal(DeploymentRing, enrichedState[ApplicationEnricherTags.DeploymentRing]);
Enrichment\ProcessLogEnricherTests.cs (2)
63Assert.Equal(Thread.CurrentThread.ManagedThreadId.ToString(CultureInfo.InvariantCulture), enrichedState[ProcessEnricherTagNames.ThreadId]); 68Assert.Equal(_processId.ToString(CultureInfo.InvariantCulture), enrichedState[ProcessEnricherTagNames.ProcessId]);
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1749Assert.True(File.Exists(Path.Combine(Path.GetTempPath(), "MLNET", ImageClassificationTrainer.ModelFileName[options.Arch])));
Microsoft.ML.Tokenizers (5)
Model\BPETokenizer.cs (1)
1049current[i] = (byte)byteToUnicodeEncoding.UnicodeToByte[span[i]];
Model\CodeGenTokenizer.cs (2)
1479current[i] = (byte)byteToUnicodeEncoding.UnicodeToByte[span[i]]; 1525private static readonly char _transformedSpace = ByteToUnicodeEncoding.Instance.ByteToUnicode[' '];
Utils\BytePairEncoder.cs (2)
20return [(ranks[mergingBytes], 0, 1)]; 108result[i] = (ranks[mergingBytes.SliceStartEnd(startIndex, endIndex)], mappedStartIndex, indexMappingSpan[finalEndIndex] - mappedStartIndex);
Microsoft.ML.Tokenizers.Tests (3)
BpeTests.cs (1)
312Assert.Equal(encodingIds[i], bpe.Vocabulary[encoding[i].Value]);
EnglishRobertaTests.cs (1)
303Assert.Equal(encodingIds[i], robertaModel.Vocabulary[tokens[i]]);
LlamaTests.cs (1)
258Assert.Equal(ids[i], bpe.Vocabulary[tokens[i]]);
Microsoft.ML.TorchSharp (7)
NasBert\Modules\Embedding\LearnedPositionalEmbedding.cs (2)
64if (param.ContainsKey(IncrementalStateKey)) incrementalState = (bool)param[IncrementalStateKey]; 65if (param.ContainsKey(PositionKey)) positions = (torch.Tensor)param[PositionKey];
NasBert\Modules\Embedding\SinusoidalPositionalEmbedding.cs (2)
116if (param.ContainsKey(IncrementalStateKey)) incrementalState = (bool)param[IncrementalStateKey]; 117if (param.ContainsKey(TimeStepKey)) timeStep = (torch.Tensor)param[TimeStepKey];
NasBert\Modules\Layers\EncConvLayer.cs (1)
83if (param.ContainsKey(PaddingMaskKey)) selfAttentionPaddingMask = (torch.Tensor)param[PaddingMaskKey];
NasBert\Modules\Layers\SelfAttentionLayer.cs (2)
83selfAttentionMask = (torch.Tensor)param[AttentionMaskKey]; 84selfAttentionPaddingMask = (torch.Tensor)param[PaddingMaskKey];
Microsoft.ML.Vision (5)
ImageClassificationTrainer.cs (5)
571ModelFileName[_options.Arch]); 613var imageSize = ImagePreprocessingSize[_options.Arch]; 1165var evalGraph = LoadMetaGraph(Path.Combine(_resourcePath, ModelFileName[_options.Arch])); 1175var imageSize = ImagePreprocessingSize[_options.Arch]; 1328var modelFileName = ModelFileName[arch];
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
61char closingBracket = attributeList[openingBracket];
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
61char closingBracket = attributeList[openingBracket];
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
1161public TValue this[TKey key] => _dictionary[key];
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\MetricsAssert.cs (1)
19Equal(expectedReason, (string) tags[KestrelMetrics.ErrorTypeAttributeName]);
System.Private.Windows.Core (2)
System\Private\Windows\BinaryFormat\Deserializer\Deserializer.cs (2)
219SerializationRecord record = _recordMap[id]; 331if (_recordMap[completedId] is ClassRecord classRecord
System.Resources.Extensions (3)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (1)
92public SerializationRecord this[SerializationRecordId id] => RecordMap[id];
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (2)
224SerializationRecord record = _recordMap[id]; 336if (_recordMap[completedId] is ClassRecord classRecord
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
61char closingBracket = attributeList[openingBracket];
Test.Utilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
Text.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IDictionaryExtensions.cs (2)
15dictionary.Keys.All(key => other.ContainsKey(key) && dictionary[key]?.Equals(other[key]) == true);
WinFormsControlsTest (1)
MainForm.cs (1)
27InitInfo info = buttonsInitInfo[item];