From 7331497656d5a3681c7c2f9847f3948bbe004cb3 Mon Sep 17 00:00:00 2001 From: Leonel Sanches da Silva Date: Tue, 11 Jun 2024 08:42:32 -0700 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20do=20n=C3=BAcleo=20de?= =?UTF-8?q?=20Del=C3=A9gua=20para=20a=20vers=C3=A3o=200.35.2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fontes/interpretador/interpretador-birl.ts | 23 ---------------------- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 28 deletions(-) diff --git a/fontes/interpretador/interpretador-birl.ts b/fontes/interpretador/interpretador-birl.ts index e65c187..59055b1 100644 --- a/fontes/interpretador/interpretador-birl.ts +++ b/fontes/interpretador/interpretador-birl.ts @@ -219,12 +219,6 @@ export class InterpretadorBirl extends InterpretadorBase { return null; } - protected eIgual(esquerda: VariavelInterface | any, direita: VariavelInterface | any): boolean { - if (esquerda === null && direita === null) return true; - if (esquerda === null) return false; - return esquerda === direita; - } - /** * Verifica se operandos são números, que podem ser tanto variáveis puras do JavaScript * (neste caso, `number`), ou podem ser variáveis de Delégua com inferência (`VariavelInterface`). @@ -688,23 +682,6 @@ export class InterpretadorBirl extends InterpretadorBase { return await this.executarBloco(declaracao.declaracoes); } - protected async avaliacaoDeclaracaoVarOuConst(declaracao: Var): Promise { - let valorOuOutraVariavel = null; - - if (declaracao.inicializador !== null) { - valorOuOutraVariavel = await this.avaliar(declaracao.inicializador); - } - - let valorFinal = null; - if (valorOuOutraVariavel !== null && valorOuOutraVariavel !== undefined) { - valorFinal = valorOuOutraVariavel.hasOwnProperty('valor') - ? valorOuOutraVariavel.valor - : valorOuOutraVariavel; - } - - return valorFinal; - } - /** * Executa expressão de definição de variável. * @param declaracao A declaração Var diff --git a/package.json b/package.json index 54aa7f5..f0b8421 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "typescript": "^5.3.3" }, "dependencies": { - "@designliquido/delegua": "^0.35.1", + "@designliquido/delegua": "^0.35.2", "lodash": "^4.17.21" } } diff --git a/yarn.lock b/yarn.lock index 3e2ae21..13199f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -304,10 +304,10 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" -"@designliquido/delegua@^0.35.1": - version "0.35.1" - resolved "https://registry.yarnpkg.com/@designliquido/delegua/-/delegua-0.35.1.tgz#1e80dbec03796f1df2f7ac5b557dd250f8784a26" - integrity sha512-4pWskF8fSkEG5xj+ph+Pv6VyNsvtGHMNZ4iuq8OQCLmQ1i+2ZMWkLu5CMVLplPsCcqn7qLFpR1zLLocVtEPaYQ== +"@designliquido/delegua@^0.35.2": + version "0.35.2" + resolved "https://registry.yarnpkg.com/@designliquido/delegua/-/delegua-0.35.2.tgz#a16d31991ef909e20d53aa455cf4a0e37a7520a5" + integrity sha512-uKNF7W/UL4RBRadyTb7P16tvHrKSKL7rC7TBmYM2aYAtijv08hMouzfQidrNBVEvtQtoNTBXBB49bp6Id8XMYQ== dependencies: antlr4ts "^0.5.0-alpha.4" browser-process-hrtime "^1.0.0"