antlr / stringtemplate4

StringTemplate 4
http://www.stringtemplate.org
Other
951 stars 231 forks source link

Please add a resolved file URL reference to CompiledST. #273

Closed rwperrott closed 3 years ago

rwperrott commented 3 years ago

The ST::groupThatCreatedThisInstance is pretty useless for STGroupDir, and it's not easy to re-generate the original file URL, for template name, so a resolved file URL is required; this could be null for STGroupString. It's probably best to put the resolved file URL on CompiledST, give its use in STGroup::importTemplates(Token fileNameToken).

rwperrott commented 3 years ago

I have suspicion that STGroupDir maybe legacy feature mainly retained for .st files, because .stg file seem a lot more