[stringtemplate-interest] StringTemplate type proxies

Terence Parr parrt at cs.usfca.edu
Wed Dec 15 13:45:54 PST 2010


On Dec 14, 2010, at 12:42 PM, Sam Harwell wrote:
> 2. The proxy is requested in two places. These two locations cause the proxy
> to be used for property lookups and rendering, before the attribute renderer
> is used.
> 2a. At the beginning of ASTExpr.GetObjectProperty (after the check for
> null).
> 2b. At the beginning of ASTExpr.Write(StringTemplate, Object,
> StringTemplateWriter) (after the check for null).

Why do we need an adaptor there?  Should only happen on $a.foo$ or maybe even $aMap.key$, right?  render happens only for toString...we can use renderers not adaptors for that.

Ter


More information about the stringtemplate-interest mailing list