18 references to IsUnsafe
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_AnonymousTypes.cs (1)
226else if (expressionType.IsUnsafe())
Binder\Binder_Conversions.cs (1)
1472if ((selectedMethod.HasUnsafeParameter() || selectedMethod.ReturnType.IsUnsafe()) && ReportUnsafeIfNotAllowed(syntax, diagnostics))
Binder\Binder_Expressions.cs (2)
545if ((object)exprType != null && exprType.IsUnsafe()) 3223if (!methodResult.Member.IsIndexer() && !argument.HasAnyErrors && parameterTypeWithAnnotations.Type.IsUnsafe())
Binder\Binder_Symbols.cs (1)
916if (Compilation.IsFeatureEnabled(MessageID.IDS_FeatureUsingTypeAlias) ? type.ContainsPointer() : type.IsUnsafe())
Binder\ExecutableCodeBinder.cs (1)
116else if (parameter.Type.IsUnsafe())
BoundTree\UnboundLambda.cs (1)
882if (targetParameterTypes[i].Type.IsUnsafe())
Symbols\MemberSymbolExtensions.cs (1)
118if (parameterType.Type.IsUnsafe())
Symbols\Source\SourceMethodSymbol.cs (1)
69else if (parameter.Type.IsUnsafe())
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
145if (parameterType.IsUnsafe())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\UnsafeTests.cs (8)
414Assert.True(fieldTypes[0].Type.IsUnsafe()); 415Assert.True(fieldTypes[1].Type.IsUnsafe()); 416Assert.True(fieldTypes[2].Type.IsUnsafe()); 417Assert.True(fieldTypes[3].Type.IsUnsafe()); 419Assert.False(fieldTypes[4].Type.IsUnsafe()); 420Assert.False(fieldTypes[5].Type.IsUnsafe()); 421Assert.False(fieldTypes[6].Type.IsUnsafe()); 422Assert.False(fieldTypes[7].Type.IsUnsafe());