<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Jan 17, 2018, at 4:19 PM, Jordan Rose &lt;<a href="mailto:jordan_rose@apple.com" class="">jordan_rose@apple.com</a>&gt; wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div class=""><div class=""><br class=""></div><div class="">The parser has fairly general support for declmodifiers, and my proposal fits directly into that. &nbsp;The only extension is that ‘default’ isn’t a decl, and I don’t think we have a statement modifier yet. &nbsp;That said, we’ve always planned to have them when the need arose.</div></div></div></div></blockquote><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">‘case’ isn’t a decl in switches either. Nor is it a statement, the way things are modeled today.</div></div></blockquote><div class=""><br class=""></div><div class="">Bleah, sorry, I forgot that it <i class="">is</i>&nbsp;a statement at the moment. But I don't think it needs to be modeled as a statement attribute/modifier. A flag on&nbsp;CaseStmt is fine.</div></div></div></div></blockquote><br class=""></div><div>DeclModifiers are a syntax/parser thing, not a representational concept in the AST. &nbsp;Storing it as a bit would be fine, I’d also prefer that.</div><div><br class=""></div><div>-Chris</div><div><br class=""></div><br class=""></body></html>