Example #1
0
        static string FilenameFromSpan(CppSourceSpan cppSpan)
        {
            var span = cppSpan.ToString();

            span = span.Substring(0, span.IndexOf("("));
            return(Path.GetFileName(span));
        }
Example #2
0
        public static string FilePath(this CppSourceSpan cppSpan)
        {
            var span = cppSpan.ToString();

            return(span.Substring(0, span.IndexOf("(")));
        }