1 instantiation of MethodDebugInfoBytes
Roslyn.Test.PdbUtilities (1)
Reader\MethodDebugInfoBytes.cs (1)
126var info = new MethodDebugInfoBytes(_bytesBuilder.ToImmutableAndFree(), _method);
29 references to MethodDebugInfoBytes
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (15)
ExpressionCompilerTests.cs (1)
5853var symReader = new MockSymUnmanagedReader(ImmutableDictionary<int, MethodDebugInfoBytes>.Empty);
LocalsTests.cs (4)
3773var debugInfo = new MethodDebugInfoBytes.Builder(constants: new[] { badConst }).Build(); 5068private static void GetLocals(RuntimeInstance runtime, string methodName, MethodDebugInfoBytes debugInfo, ArrayBuilder<LocalAndMethod> locals, int count) 5078new Dictionary<int, MethodDebugInfoBytes>()
UsingDebugInfoTests.cs (10)
385case methodToken1: return new MethodDebugInfoBytes.Builder().AddForward(methodToken2).Build().Bytes.ToArray(); 386case methodToken2: return new MethodDebugInfoBytes.Builder().AddForward(methodToken3).Build().Bytes.ToArray(); 387case methodToken3: return new MethodDebugInfoBytes.Builder(new[] { new[] { importString } }).Build().Bytes.ToArray(); 424case methodToken1: return new MethodDebugInfoBytes.Builder().AddForward(methodToken1).Build().Bytes.ToArray(); 523symReader = new MockSymUnmanagedReader(new Dictionary<int, MethodDebugInfoBytes> 525{ methodToken, new MethodDebugInfoBytes.Builder(new [] { new[] { "USystem", "USystem.IO" } }, suppressUsingInfo: true).AddUsingInfo(1, 1).Build() }, 563symReader = new MockSymUnmanagedReader(new Dictionary<int, MethodDebugInfoBytes> 565{ methodToken, new MethodDebugInfoBytes.Builder(new [] { new[] { "USystem" } }, suppressUsingInfo: true).AddUsingInfo(1).Build() }, 603symReader = new MockSymUnmanagedReader(new Dictionary<int, MethodDebugInfoBytes> 605{ methodToken, new MethodDebugInfoBytes.Builder(new [] { new[] { "TSystem.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" } }, suppressUsingInfo: true).AddUsingInfo(1).Build() },
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (2)
ExpressionCompilerTestHelpers.cs (2)
575return new MockSymUnmanagedReader(new Dictionary<int, MethodDebugInfoBytes> 577{ methodToken, new MethodDebugInfoBytes.Builder(new [] { importStrings }).Build() },
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (4)
ExpressionCompilerTests.vb (1)
3863Dim symReader As ISymUnmanagedReader = New MockSymUnmanagedReader(ImmutableDictionary(Of Integer, MethodDebugInfoBytes).Empty)
LocalsTests.vb (3)
3227Dim debugInfo = New MethodDebugInfoBytes.Builder(constants:={badConst}).Build() 3321Private Shared Sub GetLocals(runtime As RuntimeInstance, methodName As String, debugInfo As MethodDebugInfoBytes, locals As ArrayBuilder(Of LocalAndMethod), count As Integer) 3329New Dictionary(Of Integer, MethodDebugInfoBytes)() From
Roslyn.Test.PdbUtilities (8)
Reader\MethodDebugInfoBytes.cs (4)
30/// This is a helper class for creating mostly-correct <see cref="MethodDebugInfoBytes"/> objects (e.g. circular forwards, extra records, etc). 31/// To create totally broken objects (e.g. corrupted bytes, alternate scope structures, etc), construct <see cref="MethodDebugInfoBytes"/> objects directly. 116public MethodDebugInfoBytes Build() 126var info = new MethodDebugInfoBytes(_bytesBuilder.ToImmutableAndFree(), _method);
Reader\MockSymUnmanagedReader.cs (4)
21private readonly ImmutableDictionary<int, MethodDebugInfoBytes> _methodDebugInfoMap; 23public MockSymUnmanagedReader(ImmutableDictionary<int, MethodDebugInfoBytes> methodDebugInfoMap) 37MethodDebugInfoBytes info; 63MethodDebugInfoBytes info;