Skip to content

Commit

Permalink
Atualização do núcleo de Delégua para a versão 0.35.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonelsanchesdasilva committed Jun 11, 2024
1 parent 6585ddc commit 7331497
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
23 changes: 0 additions & 23 deletions fontes/interpretador/interpretador-birl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down Expand Up @@ -688,23 +682,6 @@ export class InterpretadorBirl extends InterpretadorBase {
return await this.executarBloco(declaracao.declaracoes);
}

protected async avaliacaoDeclaracaoVarOuConst(declaracao: Var): Promise<any> {
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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@designliquido/delegua": "^0.35.1",
"@designliquido/delegua": "^0.35.2",
"lodash": "^4.17.21"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7331497

Please sign in to comment.