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