public static Source GetSource(this StackFrame frame) { if (frame.IsStringModule()) { return(new Source(frame.Source, null) { origin = frame.Source, presentationHint = "deemphasize" }); } return(new Source(frame.Source)); }
public static bool IsStringModule(this StackFrame frame) { return(frame.Source == "<string>"); }