New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@designliquido/delegua

Package Overview
Dependencies
Maintainers
2
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@designliquido/delegua - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0

2

bin/package.json
{
"name": "@designliquido/delegua",
"version": "0.5.3",
"version": "0.5.4",
"description": "Linguagem de programação simples e moderna usando português",

@@ -5,0 +5,0 @@ "main": "index.ts",

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -13,3 +13,3 @@ /**

constructor(hashArquivo: number, objeto: Construto, simbolo: SimboloInterface);
aceitar(visitante: InterpretadorInterface | ResolvedorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -13,3 +13,3 @@ /**

constructor(hashArquivo: number, linha: number, expressao: Construto);
aceitar(visitante: InterpretadorInterface | ResolvedorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -9,3 +9,3 @@ export declare class Atribuir implements Construto {

constructor(hashArquivo: number, simbolo: SimboloInterface, valor: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -21,3 +21,3 @@ /**

constructor(hashArquivo: number, esquerda: any, operador: any, direita: any);
aceitar(visitante: InterpretadorInterface | ResolvedorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -10,3 +10,3 @@ export declare class Chamada implements Construto {

constructor(hashArquivo: number, entidadeChamada: Construto, parentese: any, argumentos: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -8,3 +8,3 @@ export declare class Literal implements Construto {

constructor(hashArquivo: number, linha: number, valor: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Construto } from "./construto";

@@ -8,3 +8,3 @@ export declare class Variavel implements Construto {

constructor(hashArquivo: number, simbolo: SimboloInterface);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -6,3 +6,3 @@ export declare class Bloco extends Declaracao {

constructor(hashArquivo: number, linha: number, declaracoes: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}
import { Construto } from "../construtos";
import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -7,3 +7,3 @@ export declare class Escreva extends Declaracao {

constructor(linha: number, hashArquivo: number, argumentos: Construto[]);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}
import { Construto } from "../construtos";
import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -7,3 +7,3 @@ export declare class Expressao extends Declaracao {

constructor(expressao: Construto);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -7,3 +7,3 @@ export declare class Funcao extends Declaracao {

constructor(simbolo: SimboloInterface, funcao: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -7,3 +7,3 @@ export declare class Retorna extends Declaracao {

constructor(simboloChave: SimboloInterface, valor: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -9,3 +9,3 @@ export declare class Se extends Declaracao {

constructor(condicao: any, caminhoEntao: any, caminhosSeSenao: any, caminhoSenao: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,6 +0,6 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Declaracao } from "./declaracao";
export declare class Sustar extends Declaracao {
constructor(simbolo: SimboloInterface);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface } from "../interfaces";
import { InterpretadorInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -9,3 +9,3 @@ export declare class Tente extends Declaracao {

constructor(hashArquivo: number, linha: number, caminhoTente: any, caminhoPegue: any, caminhoSenao: any, caminhoFinalmente: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}

@@ -1,2 +0,2 @@

import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from "../interfaces";
import { InterpretadorInterface, SimboloInterface } from "../interfaces";
import { Declaracao } from "./declaracao";

@@ -7,3 +7,3 @@ export declare class Var extends Declaracao {

constructor(simbolo: SimboloInterface, inicializador: any);
aceitar(visitante: ResolvedorInterface | InterpretadorInterface): any;
aceitar(visitante: InterpretadorInterface): any;
}
import { AvaliadorSintaticoInterface, DeleguaInterface, InterpretadorComDepuracaoInterface, InterpretadorInterface, LexadorInterface, RetornoExecucaoInterface, SimboloInterface } from './interfaces';
import { ResolvedorInterface } from './interfaces/resolvedor-interface';
import { ServidorDepuracao } from './depuracao';

@@ -22,3 +21,2 @@ import { ImportadorInterface } from './interfaces/importador-interface';

avaliadorSintatico: AvaliadorSintaticoInterface;
resolvedor: ResolvedorInterface;
importador: ImportadorInterface;

@@ -25,0 +23,0 @@ funcaoDeRetorno: Function;

@@ -36,3 +36,2 @@ "use strict";

var avaliador_sintatico_1 = require("./avaliador-sintatico/avaliador-sintatico");
var resolvedor_1 = require("./resolvedor");
var interpretador_1 = require("./interpretador/interpretador");

@@ -44,3 +43,2 @@ var tipos_de_simbolos_1 = __importDefault(require("./tipos-de-simbolos"));

var avaliador_sintatico_eguap_1 = require("./avaliador-sintatico/dialetos/avaliador-sintatico-eguap");
var egua_classico_2 = require("./resolvedor/dialetos/egua-classico");
var dialetos_1 = require("./avaliador-sintatico/dialetos");

@@ -50,2 +48,3 @@ var depuracao_1 = require("./depuracao");

var interpretador_com_depuracao_1 = require("./interpretador/interpretador-com-depuracao");
var dialetos_2 = require("./resolvedor/dialetos");
/**

@@ -72,11 +71,9 @@ * O núcleo da linguagem.

}
this.resolvedor = new egua_classico_2.ResolvedorEguaClassico();
this.lexador = new lexador_egua_classico_1.LexadorEguaClassico();
this.avaliadorSintatico = new dialetos_1.AvaliadorSintaticoEguaClassico();
this.importador = new importador_1.Importador(this.lexador, this.avaliadorSintatico, this.arquivosAbertos, this.conteudoArquivosAbertos, depurador);
this.interpretador = new egua_classico_1.InterpretadorEguaClassico(this, process.cwd());
this.interpretador = new egua_classico_1.InterpretadorEguaClassico(this, new dialetos_2.ResolvedorEguaClassico(), process.cwd());
console.log('Usando dialeto: Égua');
break;
case 'eguap':
this.resolvedor = new resolvedor_1.Resolvedor();
this.lexador = new lexador_eguap_1.LexadorEguaP();

@@ -86,8 +83,7 @@ this.avaliadorSintatico = new avaliador_sintatico_eguap_1.AvaliadorSintaticoEguaP();

this.interpretador = depurador ?
new interpretador_com_depuracao_1.InterpretadorComDepuracao(this.importador, this.resolvedor, process.cwd(), funcaoDeRetorno) :
new interpretador_1.Interpretador(this.importador, this.resolvedor, process.cwd(), performance, funcaoDeRetorno);
new interpretador_com_depuracao_1.InterpretadorComDepuracao(this.importador, process.cwd(), funcaoDeRetorno) :
new interpretador_1.Interpretador(this.importador, process.cwd(), performance, funcaoDeRetorno);
console.log('Usando dialeto: ÉguaP');
break;
default:
this.resolvedor = new resolvedor_1.Resolvedor();
this.lexador = new lexador_1.Lexador(performance);

@@ -97,4 +93,4 @@ this.avaliadorSintatico = new avaliador_sintatico_1.AvaliadorSintatico(performance);

this.interpretador = depurador ?
new interpretador_com_depuracao_1.InterpretadorComDepuracao(this.importador, this.resolvedor, process.cwd(), funcaoDeRetorno) :
new interpretador_1.Interpretador(this.importador, this.resolvedor, process.cwd(), performance, funcaoDeRetorno);
new interpretador_com_depuracao_1.InterpretadorComDepuracao(this.importador, process.cwd(), funcaoDeRetorno) :
new interpretador_1.Interpretador(this.importador, process.cwd(), performance, funcaoDeRetorno);
console.log('Usando dialeto: padrão');

@@ -101,0 +97,0 @@ break;

import { RetornoImportador } from "../importador";
import { AvaliadorSintaticoInterface, ImportadorInterface, InterpretadorComDepuracaoInterface, InterpretadorInterface, LexadorInterface, ResolvedorInterface, RetornoExecucaoInterface, SimboloInterface } from "../interfaces";
import { AvaliadorSintaticoInterface, ImportadorInterface, InterpretadorComDepuracaoInterface, InterpretadorInterface, LexadorInterface, RetornoExecucaoInterface, SimboloInterface } from "../interfaces";
export interface DeleguaInterface {

@@ -15,3 +15,2 @@ dialeto: string;

avaliadorSintatico: AvaliadorSintaticoInterface;
resolvedor: ResolvedorInterface;
importador: ImportadorInterface;

@@ -18,0 +17,0 @@ versao(): string;

import { Ambiente } from "../ambiente";
import { Atribuir, Construto, Literal, Super } from "../construtos";
import { Atribuir, Literal, Super } from "../construtos";
import { Bloco, Classe, Continua, Declaracao, Enquanto, Escolha, Escreva, Expressao, Fazer, Funcao, Importar, Para, Retorna, Se, Sustar, Tente, Var } from "../declaracoes";

@@ -11,3 +11,2 @@ import { ContinuarQuebra, RetornoQuebra, SustarQuebra } from "../quebras";

funcaoDeRetorno: Function;
locais: Map<Construto, number>;
pilhaEscoposExecucao: PilhaEscoposExecucaoInterface;

@@ -14,0 +13,0 @@ visitarExpressaoLiteral(expressao: Literal): any;

@@ -14,2 +14,3 @@ import { DeleguaFuncao } from "../estruturas";

obterVariavelEm(distancia: number, nome: string): any;
obterVariavelPorNome(nome: string): any;
obterTodasDeleguaFuncao(): {

@@ -16,0 +17,0 @@ [nome: string]: DeleguaFuncao;

import { Ambiente } from '../../ambiente';
import { Delegua } from '../../delegua';
import { DeleguaFuncao } from '../../estruturas/funcao';
import { InterpretadorInterface, SimboloInterface } from '../../interfaces';
import { InterpretadorInterface, SimboloInterface, ResolvedorInterface } from '../../interfaces';
import { Classe, Declaracao, Enquanto, Escolha, Escreva, Expressao, Fazer, Funcao, Importar, Para, Se, Tente, Var } from '../../declaracoes';

@@ -17,2 +17,3 @@ import { Atribuir, Construto, Literal, Super, Variavel } from '../../construtos';

Delegua: Delegua;
resolvedor: ResolvedorInterface;
diretorioBase: any;

@@ -23,3 +24,3 @@ funcaoDeRetorno: Function;

pilhaEscoposExecucao: PilhaEscoposExecucao;
constructor(Delegua: Delegua, diretorioBase: string);
constructor(Delegua: Delegua, resolvedor: ResolvedorInterface, diretorioBase: string);
visitarExpressaoLiteral(expressao: Literal): any;

@@ -26,0 +27,0 @@ avaliar(expressao: Construto): any;

@@ -51,4 +51,5 @@ "use strict";

var InterpretadorEguaClassico = /** @class */ (function () {
function InterpretadorEguaClassico(Delegua, diretorioBase) {
function InterpretadorEguaClassico(Delegua, resolvedor, diretorioBase) {
this.Delegua = Delegua;
this.resolvedor = resolvedor;
this.diretorioBase = diretorioBase;

@@ -650,3 +651,3 @@ this.funcaoDeRetorno = console.log;

this.erros = [];
var retornoResolvedor = this.Delegua.resolvedor.resolver(declaracoes);
var retornoResolvedor = this.resolvedor.resolver(declaracoes);
this.locais = retornoResolvedor.locais;

@@ -653,0 +654,0 @@ var escopoExecucao = {

import { Ambiente } from '../ambiente';
import { Declaracao } from '../declaracoes';
import { PontoParada } from '../depuracao';
import { ImportadorInterface, InterpretadorComDepuracaoInterface, ResolvedorInterface } from '../interfaces';
import { ImportadorInterface, InterpretadorComDepuracaoInterface } from '../interfaces';
import { Interpretador } from './interpretador';

@@ -34,3 +34,3 @@ import { RetornoInterpretador } from '../interfaces/retornos/retorno-interpretador';

comandoProximo: boolean;
constructor(importador: ImportadorInterface, resolvedor: ResolvedorInterface, diretorioBase: string, funcaoDeRetorno: Function);
constructor(importador: ImportadorInterface, diretorioBase: string, funcaoDeRetorno: Function);
/**

@@ -37,0 +37,0 @@ * Se bloco de execução já foi instanciado antes (por exemplo, quando há um ponto de parada e a

@@ -44,4 +44,4 @@ "use strict";

__extends(InterpretadorComDepuracao, _super);
function InterpretadorComDepuracao(importador, resolvedor, diretorioBase, funcaoDeRetorno) {
var _this = _super.call(this, importador, resolvedor, diretorioBase, false, funcaoDeRetorno) || this;
function InterpretadorComDepuracao(importador, diretorioBase, funcaoDeRetorno) {
var _this = _super.call(this, importador, diretorioBase, false, funcaoDeRetorno) || this;
_this.pontosParada = [];

@@ -48,0 +48,0 @@ _this.pontoDeParadaAtivo = false;

import { Ambiente } from '../ambiente';
import { InterpretadorInterface, ResolvedorInterface, SimboloInterface } from '../interfaces';
import { InterpretadorInterface, SimboloInterface } from '../interfaces';
import { Bloco, Classe, Continua, Declaracao, Enquanto, Escolha, Escreva, Expressao, Fazer, Funcao, Importar, Para, Retorna, Se, Tente, Var } from '../declaracoes';

@@ -17,5 +17,3 @@ import { DeleguaFuncao } from '../estruturas';

importador: ImportadorInterface;
resolvedor: ResolvedorInterface;
diretorioBase: any;
locais: Map<Construto, number>;
erros: ErroInterpretador[];

@@ -27,4 +25,3 @@ performance: boolean;

pilhaEscoposExecucao: PilhaEscoposExecucaoInterface;
constructor(importador: ImportadorInterface, resolvedor: ResolvedorInterface, diretorioBase: string, performance: boolean, funcaoDeRetorno: Function);
resolver(expressao: any, profundidade: number): void;
constructor(importador: ImportadorInterface, diretorioBase: string, performance: boolean, funcaoDeRetorno: Function);
visitarExpressaoLiteral(expressao: Literal): any;

@@ -31,0 +28,0 @@ avaliar(expressao: Construto): any;

@@ -45,3 +45,3 @@ "use strict";

var Interpretador = /** @class */ (function () {
function Interpretador(importador, resolvedor, diretorioBase, performance, funcaoDeRetorno) {
function Interpretador(importador, diretorioBase, performance, funcaoDeRetorno) {
if (performance === void 0) { performance = false; }

@@ -51,7 +51,5 @@ this.funcaoDeRetorno = null;

this.importador = importador;
this.resolvedor = resolvedor;
this.diretorioBase = diretorioBase;
this.performance = performance;
this.funcaoDeRetorno = funcaoDeRetorno || console.log;
this.locais = new Map();
this.erros = [];

@@ -68,5 +66,2 @@ this.declaracoes = [];

}
Interpretador.prototype.resolver = function (expressao, profundidade) {
this.locais.set(expressao, profundidade);
};
Interpretador.prototype.visitarExpressaoLiteral = function (expressao) {

@@ -615,6 +610,6 @@ return expressao.valor;

};
// TODO: Após remoção do Resolvedor, simular casos que usem 'super' e 'isto'.
Interpretador.prototype.visitarExpressaoSuper = function (expressao) {
var distancia = this.locais.get(expressao);
var superClasse = this.pilhaEscoposExecucao.obterVariavelEm(distancia, 'super');
var objeto = this.pilhaEscoposExecucao.obterVariavelEm(distancia - 1, 'isto');
var superClasse = this.pilhaEscoposExecucao.obterVariavelPorNome('super');
var objeto = this.pilhaEscoposExecucao.obterVariavelPorNome('isto');
var metodo = superClasse.encontrarMetodo(expressao.metodo.lexema);

@@ -699,4 +694,2 @@ if (metodo === undefined) {

this.erros = [];
var retornoResolvedor = this.resolvedor.resolver(declaracoes);
this.locais = retornoResolvedor.locais;
var escopoExecucao = {

@@ -703,0 +696,0 @@ declaracoes: declaracoes,

@@ -18,2 +18,3 @@ import { SimboloInterface } from '../interfaces';

obterVariavel(simbolo: SimboloInterface): any;
obterVariavelPorNome(nome: string): any;
/**

@@ -20,0 +21,0 @@ * Método usado pelo depurador para obter todas as variáveis definidas.

@@ -6,2 +6,3 @@ "use strict";

var excecoes_1 = require("../excecoes");
var lexador_1 = require("../lexador");
var PilhaEscoposExecucao = /** @class */ (function () {

@@ -61,4 +62,13 @@ function PilhaEscoposExecucao() {

}
throw new excecoes_1.ErroEmTempoDeExecucao(simbolo, "Variável não definida '" + simbolo.lexema + "'.");
throw new excecoes_1.ErroEmTempoDeExecucao(simbolo, "Variável não definida: '" + simbolo.lexema + "'.");
};
PilhaEscoposExecucao.prototype.obterVariavelPorNome = function (nome) {
for (var i = 1; i <= this.pilha.length; i++) {
var ambiente = this.pilha[this.pilha.length - i].ambiente;
if (ambiente.valores[nome] !== undefined) {
return ambiente.valores[nome];
}
}
throw new excecoes_1.ErroEmTempoDeExecucao(new lexador_1.Simbolo('especial', nome, nome, -1, -1), "Variável não definida: '" + nome + "'.");
};
/**

@@ -65,0 +75,0 @@ * Método usado pelo depurador para obter todas as variáveis definidas.

export * from './erro-resolvedor';
export * from './pilha-escopos';
export * from './resolvedor';
export * from './retorno-resolvedor';

@@ -19,4 +19,3 @@ "use strict";

__exportStar(require("./pilha-escopos"), exports);
__exportStar(require("./resolvedor"), exports);
__exportStar(require("./retorno-resolvedor"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@designliquido/delegua",
"version": "0.5.4",
"version": "0.6.0",
"description": "Linguagem de programação simples e moderna usando português",

@@ -5,0 +5,0 @@ "main": "index.ts",

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var delegua_1 = require("../../fontes/delegua");
var dialetos_1 = require("../../fontes/resolvedor/dialetos");
describe('Resolvedor (Égua Clássico)', function () {
describe('resolver()', function () {
var delegua = new delegua_1.Delegua('egua');
var resolvedor = new dialetos_1.ResolvedorEguaClassico();
it('Sucesso', function () {
var retornoLexador = delegua.lexador.mapear(["escreva('Olá mundo');"], -1);
var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
expect(delegua.resolvedor.escopos).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toHaveLength(0);
resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
expect(resolvedor.escopos).toBeTruthy();
expect(resolvedor.escopos.pilha).toBeTruthy();
expect(resolvedor.escopos.pilha).toHaveLength(0);
});
// TODO: Resolver bug.
it('Sucesso - Vetor vazio', function () {
delegua.resolvedor.resolver([]);
expect(delegua.resolvedor.escopos).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toHaveLength(0);
resolvedor.resolver([]);
expect(resolvedor.escopos).toBeTruthy();
expect(resolvedor.escopos.pilha).toBeTruthy();
expect(resolvedor.escopos.pilha).toHaveLength(0);
});
// TODO: Resolver bug.
it('Sucesso - Undefined', function () {
delegua.resolvedor.resolver(undefined);
expect(delegua.resolvedor.escopos).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toHaveLength(0);
resolvedor.resolver(undefined);
expect(resolvedor.escopos).toBeTruthy();
expect(resolvedor.escopos.pilha).toBeTruthy();
expect(resolvedor.escopos.pilha).toHaveLength(0);
});
// TODO: Resolver bug.
it('Sucesso - Null', function () {
delegua.resolvedor.resolver(null);
expect(delegua.resolvedor.escopos).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toBeTruthy();
expect(delegua.resolvedor.escopos.pilha).toHaveLength(0);
resolvedor.resolver(null);
expect(resolvedor.escopos).toBeTruthy();
expect(resolvedor.escopos.pilha).toBeTruthy();
expect(resolvedor.escopos.pilha).toHaveLength(0);
});

@@ -36,0 +35,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc