1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var 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 = {}));
|
9 | class 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 | }
|
18 | exports.Fonte = Fonte;
|
19 | class Funcao {
|
20 | constructor(tipo, nome, linha) {
|
21 | this.tipo = tipo;
|
22 | this.nome = nome;
|
23 | this.linha = linha;
|
24 | }
|
25 | }
|
26 | exports.Funcao = Funcao;
|
27 |
|
\ | No newline at end of file |