Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusarich committed Mar 27, 2024
1 parent bd1e4a7 commit 2da1062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/grammar/grammar.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import rawGrammar from './grammar.ohm-bundle';
import { ASTConstantAttribute, ASTContractAttribute, ASTExpression, ASTFunctionAttribute, ASTNode, ASTProgram, ASTRef, ASTString, ASTTypeRef, createNode, createRef, inFile, throwError } from './ast';
import { ASTConstantAttribute, ASTContractAttribute, ASTFunctionAttribute, ASTNode, ASTProgram, ASTRef, ASTString, ASTTypeRef, createNode, createRef, inFile, throwError } from './ast';
import { checkVariableName } from './checkVariableName';
import { TactSyntaxError } from './../errors';
import { MatchResult } from 'ohm-js';
import { TypeOrigin } from '../types/types';
import { checkFunctionAttributes } from './checkFunctionAttributes';
import { checkConstAttributes } from './checkConstAttributes';
import { getExpType } from '../types/resolveExpression';

let ctx: { origin: TypeOrigin } | null;

Expand Down Expand Up @@ -429,7 +428,7 @@ semantics.addOperation<ASTNode>('resolve_declaration', {

// Statements
semantics.addOperation<ASTNode>('resolve_statement', {
StatementLet_withType(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
StatementLet_withType(_arg0, arg1, _arg2, arg3, _arg4, arg5, _arg6) {
checkVariableName(arg1.sourceString, createRef(arg1));

return createNode({
Expand All @@ -440,7 +439,7 @@ semantics.addOperation<ASTNode>('resolve_statement', {
ref: createRef(this)
})
},
StatementLet_withoutType(arg0, arg1, arg2, arg3, arg4) {
StatementLet_withoutType(_arg0, arg1, _arg2, arg3, _arg4) {
checkVariableName(arg1.sourceString, createRef(arg1));

return createNode({
Expand Down
1 change: 0 additions & 1 deletion src/test/feature-local-type-inference.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe('feature-local-type-inference', () => {
const system = await ContractSystem.create();
const treasure = system.treasure('treasure');
const contract = system.open(await LocalTypeInferenceTester.fromInit());
const tracker = system.track(contract.address);
await contract.send(treasure, { value: toNano('10') }, { $$type: 'Deploy', queryId: 0n });
await system.run();

Expand Down

0 comments on commit 2da1062

Please sign in to comment.