20 references to IsNumeric
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Patterns.cs (1)
460if (patternConversion.IsIdentity || patternConversion.IsConstantExpression || patternConversion.IsNumeric)
Binder\Semantics\Conversions\Conversion.cs (1)
1154return new CommonConversion(Exists, IsIdentity, IsNumeric, IsReference, IsImplicit, IsNullable, methodSymbol, constrainedToType);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
525Debug.Assert(!receiverConversion.IsNumeric);
Operations\CSharpOperationFactory.cs (1)
1130bool isChecked = boundConversion.Checked && (conversion.IsNumeric || (boundConversion.SymbolOpt is not null && SyntaxFacts.IsCheckedOperator(boundConversion.SymbolOpt.Name)));
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
227(conversion.IsNumeric || conversion.IsNullable) && 363originalConversion.IsNumeric || 757if (!originalConversion.IsImplicit || !originalConversion.IsNumeric) 825if (!originalConversion.IsNullable && !originalConversion.IsNumeric)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ParamsCollectionTests.cs (1)
178Assert.True(model.GetConversion(argument).IsNumeric);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TargetTypedDefaultTests.cs (1)
3530Assert.True(conversion.IsNumeric);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\GetSemanticInfoTests.cs (2)
685Assert.True(conv.IsNumeric); 757Assert.True(conv.IsNumeric);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
7489Assert.True(semanticInfo.ImplicitConversion.IsNumeric);
Symbols\ConversionTests.cs (3)
404Assert.True(conversion.IsNumeric); 417Assert.True(conversion.IsNumeric); 426Assert.True(conversion.IsNumeric);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (4)
227(conversion.IsNumeric || conversion.IsNullable) && 363originalConversion.IsNumeric || 757if (!originalConversion.IsImplicit || !originalConversion.IsNumeric) 825if (!originalConversion.IsNullable && !originalConversion.IsNumeric)