Skip to content

Commit f85f3de

Browse files
committed
package management
1 parent 70a55c6 commit f85f3de

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/hedgehog-core/src/transpiler/preprocess.ts renamed to packages/hedgehog-core/src/transpiler/preprocessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function fetchLibrary(lib_url: string) {
1212
}
1313

1414

15-
async function preprocess(source: string): Promise<string> {
15+
async function preprocessor(source: string): Promise<string> {
1616
console.log('The source code after preprocessing');
1717
let result = await preprocessDFS(source , 'root');
1818
console.log(result);
@@ -158,4 +158,4 @@ async function preprocessDFS(code: string, strCurrentCallStack: string): Promise
158158
return await returnCode;
159159
}
160160

161-
export default preprocess;
161+
export default preprocessor;

packages/hedgehog-core/src/transpiler/transpiler-core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import preprocess from './preprocess';
1+
import preprocessor from './preprocessor';
22
import operatorOverload from './operator-overload';
33

44
async function transpilerCore(source: string) {
@@ -18,7 +18,7 @@ async function transpilerCore(source: string) {
1818
);
1919

2020
//the real compiling function
21-
let preprocessed_code = await preprocess(source);
21+
let preprocessed_code = await preprocessor(source);
2222
const transpiled = babel.transform(
2323
preprocessed_code, // the code
2424
{

0 commit comments

Comments
 (0)