Compile() public method

public Compile ( string srcName, string name, List args, string template, IToken templateToken ) : CompiledTemplate
srcName string
name string
args List
template string
templateToken IToken
return Antlr4.StringTemplate.Compiler.CompiledTemplate
示例#1
0
 public Template(TemplateGroup group, string template)
 {
     groupThatCreatedThisInstance = group;
     impl = groupThatCreatedThisInstance.Compile(group.FileName, null,
                                                 null, template, null);
     impl.hasFormalArgs = false;
     impl.name          = UnknownName;
     impl.DefineImplicitlyDefinedTemplates(groupThatCreatedThisInstance);
 }
示例#2
0
        public Template(TemplateGroup group, string template)
        {
            if (group == null)
                throw new ArgumentNullException("group");

            groupThatCreatedThisInstance = group;
            impl = groupThatCreatedThisInstance.Compile(group.FileName, null,
                                                        null, template, null);
            impl.HasFormalArgs = false;
            impl.Name = UnknownName;
            impl.DefineImplicitlyDefinedTemplates(groupThatCreatedThisInstance);
        }