public virtual void LoadDependencyTemplates()
{
if (templates != null)
return;
string fileName = Path.Combine("Tool", "Templates", "depend.stg");
templates = new TemplateGroupFile(
Path.Combine(
Path.GetDirectoryName(typeof(AntlrTool).GetTypeInfo().Assembly.Location),
fileName),
Encoding.UTF8);
}