Searched defs:CodeTemplate (Results 1 – 4 of 4) sorted by relevance
101 struct CodeTemplate { struct102 /* implicit */ CodeTemplate(std::string t) : template_text(std::move(t)) {} in CodeTemplate() function104 std::string format(const TemplateEnv& env) const { in format()148 char charAt(size_t p) const { in charAt()153 size_t parseKey( in parseKey()180 size_t parseIdent(size_t pos, std::ostream& k) const { in parseIdent()188 void emitCommaSeparatedList( in emitCommaSeparatedList()207 void emitIndent(std::ostream& out, size_t indent) const { in emitIndent()212 void emitStringWithIndents( in emitStringWithIndents()239 return CodeTemplate(fmt).format(env); in format() argument
17 class CodeTemplate: class
214 def process_function(fn: NativeFunction, template: CodeTemplate) -> str:
542 def process_function(info: DifferentiabilityInfo, template: CodeTemplate) -> str: