Repository: alloy-framework/alloy
Pull request #18 (2024-09-04 01:19:39)

Remove trailing semicolon
Remove trailing semicolon to FunctionCallExpression, there are scenarios where the semicolon is not valid. For example

```ts
const foo = {
   bar: fnCall()
}
```

pkg-pr-new[bot]: 
[Open in Stackblitz](https://pkg.pr.new/template/29fa37a6-431f-4f46-bb2d-d1f2d7f5ef08)


<details><summary><b>@alloy-js/babel-plugin-alloy</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/babel-plugin-alloy@18
```

</p></details>
      
    

<details><summary><b>@alloy-js/babel-plugin-jsx-dom-expressions</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/babel-plugin-jsx-dom-expressions@18
```

</p></details>
      
    

<details><summary><b>babel-preset-alloy</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/babel-preset-alloy@18
```

</p></details>
      
    

<details><summary><b>@alloy-js/core</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/core@18
```

</p></details>
      
    

<details><summary><b>@alloy-js/java</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/java@18
```

</p></details>
      
    

<details><summary><b>@alloy-js/prettier-plugin-alloy</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/prettier-plugin-alloy@18
```

</p></details>
      
    

<details><summary><b>@alloy-js/typescript</b></summary><p>

```
pnpm add https://pkg.pr.new/alloy-framework/alloy/@alloy-js/typescript@18
```

</p></details>
      
    

_commit: <a href="https://github.com/alloy-framework/alloy/runs/29643410636"><code>0881ef1</code></a>_


Patch:
diff --git a/packages/typescript/src/components/FunctionCallExpression.tsx b/packages/typescript/src/components/FunctionCallExpression.tsx
index 3c92841..6b878a5 100644
--- a/packages/typescript/src/components/FunctionCallExpression.tsx
+++ b/packages/typescript/src/components/FunctionCallExpression.tsx
@@ -10,6 +10,6 @@ export function FunctionCallExpression(props: FunctionCallExpressionProps) {
     mapJoin(props.args, (arg) => arg, { joiner: ", " })
   : null;
   return <>
-        <Reference refkey={props.refkey} />({args});
+        <Reference refkey={props.refkey} />({args})
     </>;
 }


Test patch:
diff --git a/packages/typescript/test/function-call-expression.test.tsx b/packages/typescript/test/function-call-expression.test.tsx
index af51b98..b449d4b 100644
--- a/packages/typescript/test/function-call-expression.test.tsx
+++ b/packages/typescript/test/function-call-expression.test.tsx
@@ -21,11 +21,11 @@ it("can declare and call a function with parameters", () => {
                 console.log(message);
                 if(baz) console.log(baz)
             </FunctionDeclaration>
-            <FunctionCallExpression refkey={functionRefkey} args={[`"Hello!"`]} />
-            <FunctionCallExpression refkey={functionRefkey} />
-            <FunctionCallExpression refkey={functionRefkey} args={[<>"Hello {<>World</>}!"</>]} />
-            <FunctionCallExpression refkey={functionRefkey} args={[<>"Hey there!"</>]} />
-            <FunctionCallExpression refkey={functionRefkey} args={[<>"Hello World"</>, <>12345</>]} />
+            <FunctionCallExpression refkey={functionRefkey} args={[`"Hello!"`]} />;
+            <FunctionCallExpression refkey={functionRefkey} />;
+            <FunctionCallExpression refkey={functionRefkey} args={[<>"Hello {<>World</>}!"</>]} />;
+            <FunctionCallExpression refkey={functionRefkey} args={[<>"Hey there!"</>]} />;
+            <FunctionCallExpression refkey={functionRefkey} args={[<>"Hello World"</>, <>12345</>]} />;
           </SourceFile>
         </PackageDirectory>
       </Output>,