Update Parser.ts

This commit is contained in:
Richard Davey 2020-01-13 12:20:17 +00:00
parent c8d5e19a13
commit b63dd557e1

View file

@ -36,15 +36,12 @@ export class Parser {
}
emit() {
const matter = '/// <reference types="matter" />';
let ignored = [];
let result = this.topLevel.reduce((out: string, obj: dom.TopLevelDeclaration) => {
// TODO: remove once stable
// if (<string>obj.kind === 'property') {
// ignored.push((<any>obj).name);
// return out;
// }
//////////////////////////
return out + dom.emit(obj);
return matter + '\n\n' + out + dom.emit(obj);
}, '');
if (ignored.length > 0)