Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Source Editor ExtensionとSwiftSyntaxでコード自動生成

Source Editor ExtensionとSwiftSyntaxでコード自動生成

2021/04/19に行った社内のLT会発表資料

6500a96a5f0786d7ff0c53429d691ae6?s=128

kazuhiro4949

April 21, 2021
Tweet

Transcript

  1. ,B[VIJSP)BZBTIJ !LB[VIJSP 4PVSDF&EJUPS&YUFOTJPOͱ 4XJGU4ZOUBYͰίʔυࣗಈੜ੒ ࣾ಺J04-5

  2. ࠓճͷ࿩ͷഎܠ ՝୊ w %*ͷͨΊʹϦϑΝΫλϦϯά͢Δͷ͕ ໘౗ w ྫ͑͹ɺΫϥε"ͷϢχοτςετΛ ॻ͘ͱ͖͸ਤʹॻ͍ͨεςοϓ͕ඞཁ ᶃςετର৅"ͷґଘΫϥεΛݟ͚ͭΔ ᶄґଘΫϥε#Λ1SPUPDPMԽͯ͠*OJUͰ%*

    ᶅ#ͷ1SPUPDPMΛ࢖ͬͯ4UVC࡞੒ ᶆ4UVCΛ"ʹ%*ͯ͠ςετΛॻ͘
  3. ࠓճͷ࿩ͷഎܠ ղܾࡦ w ίʔυࣗಈੜ੒πʔϧΛ࡞Δ w 9DPEF4PVSDF&EJUPS&YUFOTJPOʹΑΓ9DPEF্ͷίʔυΛΠϯϓοτͱ͢ Δ w ΠϯϓοτΛύʔεͯ͠ɺ4XJGU4ZOUBYͰίʔυੜ੒Λߦ͏

  4. ։ൃͨ͠πʔϧͷσϞ

  5. ٕज़ղઆ ߏ੒ w NBD04"QQ w 9DPEF4PVSDF&EJUPS&YUFOTJPO w 4XJGU4ZOUBY w MJC@*OUFSOBM4XJGU4ZOUBY1BSTFSEZMJC

    NBD04"QQ 4PVSDF&EJUPS&YUFOTJPO 4XJGU4ZOUBY MJC@*OUFSOBM4XJGU4ZOUBY1BSTFSEZMJC
  6. ٕज़ղઆ ॲཧͷྲྀΕ #4PVSDF&EJUPS&YUFOTJPO $4XJGU4ZOUBY "9DPEF ᶃTXJGUϑΝΠϧ ᶄΧʔιϧͷબ୒ൣғͷߦΛ͢΂ͯ4USJOHͱͯͭ͠ͳ͍Ͱ$ͷύʔαʔʹ౉͢ ᶅύʔε݁Ռ͔Β1SPUPDMΛੜ੒ͯ͠4USJOHʹ໭ͯ͠ฦ͢ ᶆTXJGUϑΝΠϧΛ ্ॻ͖

  7. ٕज़ղઆ NBD04"QQͱͷؔ܎ NBD04"QQ 4PVSDF&EJUPS&YUFOTJPO 4XJGU4ZOUBY 4XJGU4ZOUBYΛϥοϓͨ͠%*)FMQFSͷػೳ࣮૷ ྆λʔήοτ͔Βࢀর͠ɺ Ұͭͷύοέʔδͱ͔ͯͭ͑͠Δ

  8. ٕज़ղઆ "QQ4UPSFͷ৹ࠪ΋௨Δ w NBD04্ͷEZMJCΛ૊ΈࠐΉͷ ͸ͩΊ͔ͱ৺഑͍ͯͨ͠ w αϯϓϧϓϩάϥϜΛཁٻ͞Ε Δ͙Β͍Ͱී௨ʹ৹ࠪ௨ͬͨ

  9. ͦͷଞͷࣗಈੜ੒ख๏ ํ๏ ಛ௃ σϝϦοτ 9DPEF5FNQMBUF w γϯϓϧͳςϯϓϨʔτΤϯδϯ w ϑΝΠϧੜ੒࣌ʹ࢖͑Δ w

    ෳࡶͳίʔυ͸ຒΊࠐΊͳ͍ 3VO4DSJQU ίϚϯυϥΠϯπʔϧ wϏϧυ࣌ʹίʔυ͕ੜ੒͞ΕΔ wͲΜͳݴޠɾϥΠϒϥϦ΋࢖͑Δ wԿͰ΋Ͱ͖Δ w ϏϧυΛ૸ΒͤΔඞཁ͕͋Δ 

  10. 4PVSDF&EJUPS&YUFOTJPOͷಛ௃ w 9DPEF্ͰιʔείʔυΛॻ͖ͳ͕Β࢖͑Δ w NBD04BQQͱͷ૊Έ߹Θͤͯ(6*Λ࢖ͬͨૢ࡞͕Ͱ͖Δ w ϑΝΠϧ୯ҐͷมߋͷΈ

  11. ·ͱΊ 4PVSDF&EJUPS&YUFOTJPO 4XJGU4ZOUBY w 9DPEF্ͷίʔυΛೖྗͱͯ͠ɺ9DPEF্Ͱύʔε͞Εͨίʔυૢ࡞͕Մೳ w ίʔυࣗಈੜ੒ͷखஈͷҰͭͱͯ͠৭ʑ࢖͑ͦ͏