1 write to LiteralValues
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\440320f3f10733a8\ValueContentAbstractValue.cs (1)
38
LiteralValues
= literalValues;
32 references to LiteralValues
Microsoft.CodeAnalysis.NetAnalyzers (32)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (3)
143
decodedOsPlatformNamesBuilder.AddRange(valueContentValue.
LiteralValues
.OfType<string>());
229
valueContentValue.
LiteralValues
.Count == 1 &&
230
valueContentValue.
LiteralValues
.Single() is int part)
Microsoft.NetCore.Analyzers\Runtime\DoNotPassLiteralsAsLocalizedParameters.cs (4)
124
Debug.Assert(!stringContentValue.
LiteralValues
.IsEmpty);
126
if (stringContentValue.
LiteralValues
.Any(l => l is not string))
131
var stringLiteralValues = stringContentValue.
LiteralValues
.Cast<string?>();
134
if (stringContentValue.
LiteralValues
.Count == 1 &&
Microsoft.NetCore.Analyzers\Security\UseSharedAccessProtocolHttpsOnly.cs (1)
157
!protocolsArgument.
LiteralValues
.Contains(SharedAccessProtocolHttpsOnly))
src\40daf5e1cab76dff\HardcodedSymmetricAlgorithmKeysSources.cs (1)
39
&& argumentValueContents[0].
LiteralValues
.Any(
src\440320f3f10733a8\ValueContentAbstractValue.cs (13)
151
hashCode.Add(HashUtilities.Combine(
LiteralValues
));
158
return HashUtilities.Combine(
LiteralValues
) == HashUtilities.Combine(other.
LiteralValues
)
173
ImmutableHashSet<object?> mergedLiteralValues =
LiteralValues
.AddRange(otherState.
LiteralValues
);
208
public bool IsLiteralState => !
LiteralValues
.IsEmpty && NonLiteralState == ValueContainsNonLiteralState.No;
219
if (!IsLiteralState ||
LiteralValues
.Count != 1)
225
object? o =
LiteralValues
.First();
244
var mergedLiteralValues = this.
LiteralValues
.Intersect(value2.
LiteralValues
);
266
foreach (var leftLiteral in
LiteralValues
)
268
foreach (var rightLiteral in otherState.
LiteralValues
)
286
string.Format(CultureInfo.InvariantCulture, "L({0}) NL:{1}",
LiteralValues
.Count, NonLiteralState.ToString()[0]);
src\440320f3f10733a8\ValueContentAnalysis.ValueContentAbstractDomain.cs (4)
34
if (oldValue.
LiteralValues
.SetEquals(newValue.
LiteralValues
))
38
else if (oldValue.
LiteralValues
.IsSubsetOf(newValue.
LiteralValues
))
src\440320f3f10733a8\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (3)
129
newValue.
LiteralValues
.Count == 1 &&
130
currentAssignedValue.
LiteralValues
.Count == 1 &&
131
existingTargetValue.
LiteralValues
.Count == 1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetCallbacks.cs (3)
56
if (valueContentAbstractValue.
LiteralValues
.IsEmpty)
63
foreach (object? literalValue in valueContentAbstractValue.
LiteralValues
)
97
if (valueContentAbstractValue.
LiteralValues
.Any(badLiteralValuePredicate))