4 references to TryConvertToUInt64
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
121
return DiagnosticHelpers.
TryConvertToUInt64
(constantValue.Value, constantValueType.SpecialType, out ulong convertedValue) && convertedValue == comparand;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (3)
57
if (DiagnosticHelpers.
TryConvertToUInt64
(literal, type.SpecialType, out ulong convertedValue) &&
322
if (DiagnosticHelpers.
TryConvertToUInt64
(value1, type1.SpecialType, out ulong convertedValue1) &&
323
DiagnosticHelpers.
TryConvertToUInt64
(value2, type2.SpecialType, out ulong convertedValue2) &&