Skip to content

Commit

Permalink
Remove método eLimpaTela que não é mais necessário
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelrvg committed Sep 22, 2023
1 parent c03597c commit dca75c8
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,6 @@ export class AvaliadorSintaticoVisuAlg extends AvaliadorSintaticoBase {
return this.atual === this.simbolos.length;
}

eLimpaTela(): Boolean {
return this.simbolos[this.atual].lexema === 'limpatela';
}

metodoBibliotecaGlobal(): Construto {
const simboloAnterior = this.simbolos[this.atual - 1];

Expand Down Expand Up @@ -299,8 +295,8 @@ export class AvaliadorSintaticoVisuAlg extends AvaliadorSintaticoBase {
return new Literal(this.hashArquivo, Number(simboloAtual.linha), false);
if (this.verificarSeSimboloAtualEIgualA(tiposDeSimbolos.VERDADEIRO))
return new Literal(this.hashArquivo, Number(simboloAtual.linha), true);
if(this.eLimpaTela()){
const variavel = new Variavel(this.hashArquivo, this.simbolos[this.atual]);
if(simboloAtual.lexema === 'limpatela'){
const variavel = new Variavel(this.hashArquivo, simboloAtual);
this.avancarEDevolverAnterior();
return new Chamada(this.hashArquivo, variavel, null, []);
}
Expand Down

0 comments on commit dca75c8

Please sign in to comment.