<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 20, 2014 at 7:19 PM, Sean Silva <span dir="ltr"><<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Manuel, do you remember why this name was chosen? I seem to recall thinking that the name was well-chosen.</div>
</blockquote><div><br></div><div>It's a DynTypedNode, because the type information is kept / available dynamically. ASTNode would suggest that there is a common interface for AST nodes, which there is not.</div><div>What doesn't work for me is saying "DynTypedNode is an AST node". This feels wrong. DynTypedNode is more like a "smart reference".</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>
<div><br></div><div>-- Sean Silva</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, May 18, 2014 at 11:18 PM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">This is always referred to as an AST node in documentation. By wrapping Decls, Stmts and QualTypes it provides a generalised way to reference AST nodes. And despite the name, DynTypedNode doesn't have anything to do with dynamic types in the AST.<br>


<br>
The attached patch renames the class and implementation to ASTNode.<br>
<br>
(Indeed the namespace "ast_type_traits" is equally confusing. Presumably both are cases where implementation details have leaked into the naming scheme?)<span><font color="#888888"><br>
<br>
Alp.<br>
<br>
-- <br>
<a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
the browser experts<br>
<br>
</font></span><br></div></div>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>