File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ export function generateFunctionDecl({
88 return `${ returnType } (*${ name } )(${ argumentTypes . join ( ", " ) } );` ;
99}
1010
11- /**
12- * Generates source code for a version script for the given Node API version.
13- */
1411export function generateHeader ( functions : FunctionDecl [ ] ) {
1512 return `
1613 #pragma once
Original file line number Diff line number Diff line change 11import type { FunctionDecl } from "../../src/node-api-functions.js" ;
22import { generateFunction } from "./shared.js" ;
33
4- /**
5- * Generates source code for a version script for the given Node API version.
6- */
4+
75export function generateHeader ( ) {
86 return `
97 #pragma once
@@ -36,9 +34,6 @@ function generateFunctionImpl(fn: FunctionDecl) {
3634 } ) ;
3735}
3836
39- /**
40- * Generates source code for a version script for the given Node API version.
41- */
4237export function generateSource ( functions : FunctionDecl [ ] ) {
4338 return `
4439 #include "weak_node_api.hpp"
Original file line number Diff line number Diff line change @@ -49,10 +49,6 @@ const clangAstDump = z.object({
4949 ) ,
5050} ) ;
5151
52- /**
53- * Generates source code for a version script for the given Node API version.
54- * @param version
55- */
5652export function getNodeApiHeaderAST ( version : NodeApiVersion ) {
5753 const output = cp . execFileSync (
5854 "clang" ,
You can’t perform that action at this time.
0 commit comments