UNPKG

754 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var Tipos;
4(function (Tipos) {
5 Tipos[Tipos["Function"] = 0] = "Function";
6 Tipos[Tipos["User Function"] = 1] = "User Function";
7 Tipos[Tipos["Class"] = 2] = "Class";
8})(Tipos = exports.Tipos || (exports.Tipos = {}));
9class Fonte {
10 constructor(fonte) {
11 this.fonte = fonte;
12 this.funcoes = [];
13 }
14 addFunction(tipo, nome, linha) {
15 this.funcoes.push(new Funcao(tipo, nome, linha));
16 }
17}
18exports.Fonte = Fonte;
19class Funcao {
20 constructor(tipo, nome, linha) {
21 this.tipo = tipo;
22 this.nome = nome;
23 this.linha = linha;
24 }
25}
26exports.Funcao = Funcao;
27//# sourceMappingURL=fonte.js.map
\No newline at end of file