MCPcopy Index your code
hub / github.com/antlr/codebuff / lookupImportedTemplate

Method lookupImportedTemplate

output/java8/1.4.13/STGroup.java:299–311  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

297 }
298
299 protected CompiledST lookupImportedTemplate(String name) {
300 if ( imports.size()==0 ) return null;
301 for (STGroup g : imports) {
302 if ( verbose ) System.out.println("checking "+g.getName()+" for imported "+name);
303 CompiledST code = g.lookupTemplate(name);
304 if ( code!=null ) {
305 if ( verbose ) System.out.println(g.getName()+".lookupImportedTemplate("+name+") found");
306 return code;
307 }
308 }
309 if ( verbose ) System.out.println(name+" not found in "+getName()+" imports");
310 return null;
311 }
312
313 public CompiledST rawGetTemplate(String name) {
314 return templates.get(name);

Callers 2

lookupTemplateMethod · 0.95
super_newMethod · 0.45

Calls 4

getNameMethod · 0.95
sizeMethod · 0.65
getNameMethod · 0.45
lookupTemplateMethod · 0.45

Tested by

no test coverage detected