UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

18 lines (13 loc) 296 B
export default class PrintOnce { static messagesSet = new Set<string>(); static message(message: string) { if (message === undefined) { return; } if (this.messagesSet.has(message)) { return; } this.messagesSet.add(message); console.log(message); } }