Antlr4.StringTemplate.TemplateGroupFile.Show C# (CSharp) Method

Show() public method

public Show ( ) : string
return string
        public override string Show()
        {
            if (!_alreadyLoaded)
                Load();

            return base.Show();
        }

Usage Example

Example #1
0
        public void TestSimpleGroup()
        {
            string templates =
                "t() ::= <<foo>>" + Environment.NewLine;

            writeFile(tmpdir, "t.stg", templates);
            TemplateGroup group = new TemplateGroupFile(Path.Combine(tmpdir, "t.stg"));
            string expected =
                "t() ::= <<" + Environment.NewLine +
                "foo" + Environment.NewLine +
                ">>" + Environment.NewLine;
            string result = group.Show();
            Assert.AreEqual(expected, result);
        }
All Usage Examples Of Antlr4.StringTemplate.TemplateGroupFile::Show