예제 #1
0
        private string ExtractId(LGFileParser.ImportDefinitionContext parseTree)
        {
            // content: [xxx](yyy)
            var content = parseTree.GetText();
            var lastOpenBracketIndex = content.LastIndexOf('(');

            return(content.Substring(lastOpenBracketIndex + 1, content.Length - lastOpenBracketIndex - 2));
        }
예제 #2
0
        private string ExtractDescription(LGFileParser.ImportDefinitionContext parseTree)
        {
            // content: [xxx](yyy)
            var content = parseTree.GetText();
            var closeSquareBracketIndex = content.IndexOf(']');

            return(content.Substring(1, closeSquareBracketIndex - 1));
        }