<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SieR</title>
    <description>The latest articles on DEV Community by SieR (@sier).</description>
    <link>https://dev.to/sier</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F956870%2F299d134c-129c-475d-a25d-f84456953cf7.png</url>
      <title>DEV Community: SieR</title>
      <link>https://dev.to/sier</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sier"/>
    <language>en</language>
    <item>
      <title>Stop Using "AST" Directly</title>
      <dc:creator>SieR</dc:creator>
      <pubDate>Thu, 27 Oct 2022 09:42:30 +0000</pubDate>
      <link>https://dev.to/sier/stop-using-ast-directly-1m7d</link>
      <guid>https://dev.to/sier/stop-using-ast-directly-1m7d</guid>
      <description>&lt;p&gt;This is my first post on dev.to! Hello everyone!&lt;/p&gt;

&lt;h1&gt;
  
  
  Hello!
&lt;/h1&gt;

&lt;p&gt;I'm making tool for typescript transform named "transformer-query", which can query typescript AST and able to change its structure more intuitively. Despite it is still developing, I wanted to share my concept.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why not "AST"?
&lt;/h1&gt;

&lt;p&gt;As with any programming language, ASTs are complex. The AST corresponds to the grammar, but has additional information. That's why interacting with the AST was complicated. Typescript wasn't exception.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is "transformer-query"?
&lt;/h1&gt;

&lt;p&gt;Here's repository: &lt;a href="https://github.com/SieR-VR/transformer-query"&gt;transformer-query&lt;/a&gt; (still no readme, complicated code)&lt;/p&gt;

&lt;p&gt;It provides more intuitive way for interacting with ASTs.&lt;br&gt;
Thanks for ttypescript, this made it easy to develop this library.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to use
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---praeltc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ipqfgygfszmz6mbm22to.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---praeltc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ipqfgygfszmz6mbm22to.png" alt="Image description" width="880" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;makeTransform() returns ttypescript transform function. So, we can use like that. &lt;/p&gt;

&lt;p&gt;Query should be tagged string literal. And it accepts imported variable or interal wildcard.&lt;/p&gt;

&lt;p&gt;And call chain, which appears next of query, can return valid typescript code or ts.Node interface.&lt;/p&gt;

&lt;p&gt;That's it! after this, just register it with the method described on &lt;a href="https://github.com/cevek/ttypescript"&gt;ttypescript&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>transformer</category>
    </item>
  </channel>
</rss>
