From f26dd83a3f67dbd57d9472c3896ea973fb788061 Mon Sep 17 00:00:00 2001 From: Gusarich Date: Wed, 27 Mar 2024 11:49:14 +0300 Subject: [PATCH] fix eslint --- src/grammar/grammar.ts | 7 +++---- src/test/feature-local-type-inference.spec.ts | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/grammar/grammar.ts b/src/grammar/grammar.ts index 10f7230ac..908b2734b 100644 --- a/src/grammar/grammar.ts +++ b/src/grammar/grammar.ts @@ -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; @@ -429,7 +428,7 @@ semantics.addOperation('resolve_declaration', { // Statements semantics.addOperation('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({ @@ -440,7 +439,7 @@ semantics.addOperation('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({ diff --git a/src/test/feature-local-type-inference.spec.ts b/src/test/feature-local-type-inference.spec.ts index d44b95d52..4eb90af16 100644 --- a/src/test/feature-local-type-inference.spec.ts +++ b/src/test/feature-local-type-inference.spec.ts @@ -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();