12 references to AsRef
Microsoft.CodeAnalysis.CSharp (8)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
1336BetterResult result = MoreSpecificType(ref uninst1.AsRef(), ref uninst2.AsRef(), ref useSiteInfo);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
2071result = MoreSpecificType(ref uninst1.AsRef(), ref uninst2.AsRef(), ref useSiteInfo); 2345n1.GetAllTypeArguments(ref allTypeArgs1.AsRef(), ref useSiteInfo); 2346n2.GetAllTypeArguments(ref allTypeArgs2.AsRef(), ref useSiteInfo); 2348var result = MoreSpecificType(ref allTypeArgs1.AsRef(), ref allTypeArgs2.AsRef(), ref useSiteInfo);
Microsoft.CodeAnalysis.UnitTests (4)
Collections\TemporaryArrayTests.cs (4)
26array.AsRef()[-1] = 1; 33array.AsRef()[0] = 1; 69Assert.Throws<IndexOutOfRangeException>(() => array.AsRef()[i] = 1); 74array.AsRef()[i] = i + 1;