7 instantiations of JsonValue
Microsoft.Analyzers.Local (7)
70 references to JsonValue
Microsoft.Analyzers.Local (68)
JsonObject.cs (16)
17internal sealed class JsonObject : IEnumerable<KeyValuePair<string, JsonValue>>, IEnumerable<JsonValue>
19private readonly IDictionary<string, JsonValue> _properties;
26_properties = new Dictionary<string, JsonValue>();
42public JsonValue this[string key]
44get => _properties.TryGetValue(key, out var value)
46: JsonValue.Null;
56public JsonObject Add(string key) => Add(key, JsonValue.Null);
64public JsonObject Add(string key, JsonValue value)
106if (_properties.TryGetValue(oldKey, out var value))
127public bool Contains(JsonValue value) => _properties.Values.Contains(value);
133public IEnumerator<KeyValuePair<string, JsonValue>> GetEnumerator() => _properties.GetEnumerator();
139IEnumerator<JsonValue> IEnumerable<JsonValue>.GetEnumerator() => _properties.Values.GetEnumerator();
185private readonly JsonValue _value;
187public KeyValuePair(string key, JsonValue value)
Microsoft.Analyzers.Local.Tests (2)