mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Update Parser.ts
This commit is contained in:
parent
c8d5e19a13
commit
b63dd557e1
1 changed files with 4 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue