Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetSourceLineInfo()

void System.Diagnostics.StackTraceSymbols.GetSourceLineInfo ( Assembly assembly,
string assemblyPath,
IntPtr loadedPeAddress,
int loadedPeSize,
bool isFileLayout,
IntPtr inMemoryPdbAddress,
int inMemoryPdbSize,
int methodToken,
int ilOffset,
out string sourceFile,
out int sourceLine,
out int sourceColumn )
inlinepackage

Definition at line 30 of file StackTraceSymbols.cs.

31 {
32 sourceFile = null;
33 sourceLine = 0;
34 sourceColumn = 0;
36 if (metadataReader == null)
37 {
38 return;
39 }
41 if (handle.Kind != HandleKind.MethodDefinition)
42 {
43 return;
44 }
47 if (methodDebugInformation.SequencePointsBlob.IsNil)
48 {
49 return;
50 }
54 {
55 if (item.Offset > ilOffset)
56 {
57 break;
58 }
59 if (item.StartLine != 16707566)
60 {
62 }
63 }
64 if (sequencePoint.HasValue)
65 {
66 sourceLine = sequencePoint.Value.StartLine;
67 sourceColumn = sequencePoint.Value.StartColumn;
68 sourceFile = metadataReader.GetString(metadataReader.GetDocument(sequencePoint.Value.Document).Name);
69 }
70 }
MetadataReader TryGetReader(Assembly assembly, string assemblyPath, IntPtr loadedPeAddress, int loadedPeSize, bool isFileLayout, IntPtr inMemoryPdbAddress, int inMemoryPdbSize)

References System.handle, System.Reflection.Metadata.Ecma335.MetadataTokens.Handle(), System.item, and System.Diagnostics.StackTraceSymbols.TryGetReader().