Skip to content

Commit

Permalink
refactor: optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thekiba committed Feb 11, 2024
1 parent 12dd1dd commit 96d5848
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/astbuilder/fill_constructors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
NameExpr,
NegateExpr,
NumberExpr,
} from "@ton-community/tlb-parser/dist/ast/nodes";
} from "@ton-community/tlb-parser";
import * as crc32 from "crc-32";
import {
TLBBinaryOp,
Expand Down
2 changes: 1 addition & 1 deletion src/astbuilder/handle_field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
FieldNamedDef,
MathExpr,
NameExpr,
} from "@ton-community/tlb-parser/dist/ast/nodes";
} from "@ton-community/tlb-parser";
import { TLBField } from "../ast";
import { getType } from "./handle_type";
import { TLBConstructorBuild, TLBTypeBuild } from "./utils";
Expand Down
2 changes: 1 addition & 1 deletion src/astbuilder/handle_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
NegateExpr,
NumberExpr,
Expression as ParserExpression,
} from "@ton-community/tlb-parser/dist/ast/nodes";
} from "@ton-community/tlb-parser";
import {
TLBBinaryOp,
TLBFieldType,
Expand Down
2 changes: 1 addition & 1 deletion src/astbuilder/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
NegateExpr,
NumberExpr,
SimpleExpr,
} from "@ton-community/tlb-parser/dist/ast/nodes";
} from "@ton-community/tlb-parser";
import {
TLBBinaryOp,
TLBConstructorTag,
Expand Down
6 changes: 2 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Program } from "@ton-community/tlb-parser/dist/ast/nodes";
import { ast, Program } from "@ton-community/tlb-parser";
import { TLBCode, TLBType } from "./ast";
import {
TLBCodeBuild,
Expand All @@ -9,8 +9,6 @@ import { fillConstructors } from "./astbuilder/fill_constructors";
import { CodeBuilder } from "./generators/CodeBuilder";
import { CodeGenerator, CommonGenDeclaration } from "./generators/generator";
import { TypescriptGenerator } from "./generators/typescript/generator";

import { ast } from "@ton-community/tlb-parser";
import fs from 'fs'


Expand Down Expand Up @@ -83,4 +81,4 @@ export function generateCode(inputPath: string, outputPath: string, resultLangua
}
}
generateCodeWithGenerator(inputPath, outputPath, getGenerator);
}
}

0 comments on commit 96d5848

Please sign in to comment.